In the previous article we’ve seen how to build a minimal CLI program to read files in the terminal using golang. Let’s see if we are able to taking things up a notch. We wil update our code for a little performance bump, and had a feature to read many files. Previously Last time we build a small program to read a file from disk and display the raw content in the terminal. While it’s OK to dump...
I started digging through the Golang programming language in 2023 and I really liked it. In fact, it’s really powerful and composable and modular, and in a sense more accessible than other low-level languages like Rust. We are far from the developer happiness that a programming language like Ruby is providing, yet I find it very pleasant to work with. There is a wide variety of packages and frameworks that make it a great candidate to build any kind of...
This website has gotten many shapes and forms, in both contents and design. I’ve started from a custom PHP CMS (good ol’ PHP3 era), and went to the WordPress bandwagon, and then back to a custom hand made version. When I went back to own my own code and content, I decided that having a CMS or blog engine wasn’t worth the effort. I looked at static websites generators (SSG), and made the choice of using Jekyll. I was a...
Occasionally, I find myself in need for a basic HTTP server that will render some static content (HTML, CSS, images,..), no complex installation, only build and launch. As I am a huge Ruby fan, I was wondering how can I achieve this in the simplest way possible with plain Ruby. What we will build A basic HTTP server, serving a static HTML file. The Install process should be as small as possible, and launching the server should be fast...