J
In this day and age, server side rendering proves it is stable and more effective than the JavaScript bloat we are growing used to. Any simple page, with perhaps at most 3 KB of actual text content will download over 2 MB of JavaScript in order to simply function. Besides that fact, SPA and API situations, where you have a decoupled frontend from the backend, still do not justify the fact of using JavaScript, or even worse, any of its frameworks. That paradigm can easily be, in most cases,…
J
This serves as a supplement to Effective Go, based on years of experience and inspiration/ideas from conference talks. Add context to errors # Don’t: file, err := os.Open("foo.txt") if err != nil { return err } copy Using the approach above can lead to unclear error messages because of missing context. Do: file, err := os.Open("foo.txt") if err != nil { return fmt.Errorf("open foo.txt failed: %w", err) } copy Wrapping errors with a custom message provides context as it gets propagated up the…
J
Writing a Jenkins Shared Library pipeline # A good read to get started understanding about why and how we are doing this, is the Jenkins official documentation, which gives a good explanation about this, but quite incomplete when it comes an actual example implementation. I have taken most of the ideas and the article from Adrian Kuper, thank him and me for this tutorial. In this blog post I will try to explain how to setup and develop a shared pipeline library for Jenkins, that is easy to work…
J
It is important to have a clean separation of concerns, both in your code, as in your machine’s setup. If you are looking for information on how to get a ZFS FreeBSD setup on one hard-drive with multiple partitions, this is what you want. This guide assumes you want to install FreeBSD and manually create the ZFS pool, to change default settings, or to not use the entire disk. If you just want to setup ZFS on the entire disk, use the ’ZFS’ option in the bsdinstall partitioning menu. Boot FreeBSD…
J
In order to keep all of the jails behind a single public IP address, you’ll need to set up a loopback interface and direct the incoming and outgoing traffic of your Jails with a proper firewall like pf. Learn how to get started on an amazing setup. There are multiple ways to manage your jails, but iocage is one of the more popular ones. In terms of jail managers it’s a fairly new player in the game of jail management and is being very actively developed. It has a full rewrite in Python, and…
J
Ever heard of dangling pointers? Have you ever left your database connections without closing them properly? One must pay special attention to this specially when dealing with lower level languages like Go, C, and C++. Resource leaks really are a do or die in many applications, something very often and very easily overlooked. I personally have had applications catastrophically crash due to this. Read this to understand useful patterns and practices avoiding these problems in Go… A true story! #…
J
Something that I’ve been thinking about a lot recently, when reflecting on the body of my own work, is a common subtitle, how should I write good code? Given nobody actively seeks to write bad code, this leads to the question; how do you know when you’ve written good Go code? If there’s a continuum between good and bad, how to do we know what the good parts are? What are its properties, its attributes, its hallmarks, its patterns, and its idioms? Maintainability counts # Clarity, readability,…
J
Why Write Clean Code? # This document is a reference for the Go community that aims to help developers write cleaner code. Whether you’re working on a personal project or as part of a larger team, writing clean code is an important skill to have. Establishing good paradigms and consistent, accessible standards for writing clean code can help prevent developers from wasting many meaningless hours on trying to understand their own (or others’) work. We don’t read code, we decode it – Peter Seibel…
J
PostgreSQL or Postgres is a powerful object-relational high-performance database management system (ORDBMS) published under a flexible BSD-style license. PostgreSQL is well suited for large databases and has many advanced features. In this tutorial, I will show you how to install and configure a PostgreSQL database server on FreeBSD. We will install the latest version of PostgreSQL 11 on the FreeBSD 12.0 system. Prerequisites # For this guide, we will use FreeBSD 12 with 2 GB of RAM memory and…
J
This is a post about Go’s built in make and new functions. As Rob Pike noted at Gophercon on 2014, Go has many ways of initialising variables. Among them is the ability to take the address of a struct literal which leads to several ways to do the same thing. s := &SomeStruct{} v := SomeStruct{} s := &v // identical s := new(SomeStruct) // also identical It is fair that people point out this redundancy in the language and this sometimes leads them to search for other inconsistencies, most…
J
If writing code were a science, all developers would pretty much be the same. But it is not. And just like in art, no two developers have the same thinking or perception while working towards the same outcome. While some struggle to produce the desired outcome, to a few, it comes almost naturally, as if an epiphany hits them at the moment they start writing code or solve a problem. Say no to artificial energy drinks. And in a blog post, Steve McConnell, one of the experts in software…
J
<2025-11-14 Fri> Simple Rust Guix Emacs development environment - A minimal, declarative setup for productive Rust hacking with Emacs and Guix.
J
<2026-06-20 Sat> jointhefreeworld - A Style Guide for Documentation - This style guide will help you write better documentation, manuals, tutorials and READMEs <2025-10-19 Sun> Mètsàtron's astral analysis of Joe's being - My brother from another mother, Mètsàtron Sucurí Jibōia did some astral and digital readings about me (Joe). <2024-06-17 Mon> Brief aan mijzelf - Jij en ik weten dat levend zijn pieken en dalen betekent.
J
<2026-12-02 Wed> Sift: the Lisp formatter I kept trying to write (+lint +LSP) - an idempotent formatter, a rule-based linter and a language server, for Scheme, Racket, Emacs Lisp and Common Lisp <2026-10-23 Fri> OrgWebAlchemy: Benchmarking, Profiling, and the Long Road to Real Org Support - OrgWebAlchemy now renders Markdown, understands figures, named elements and real table rows, and got up to 6x faster. This is the story of the profiling that found a quadratic collapse pass and a…
J
<2024-04-20 Sat> Free à la Carte - Modeling effects with free monads in a simple and composable way with Haskell. Checkout my custom library and how to use it. <2022-10-10 Mon> Running Hoogle locally <2022-09-12 Mon> Type safety back and forth <2022-09-10 Sat> Why Haskell is important? <2021-08-21 Sat> Haskell in Production at Foxdown Systems - Haskell is the first programming language Foxdown reaches for when we build production software systems.
J
<2021-09-29 Wed> How I write HTTP services <2021-09-27 Mon> Project Structure <2021-09-16 Thu> SQL transactions <2021-01-26 Tue> Opinionated Style Guide <2020-11-13 Fri> File Descriptors and Go <2020-10-04 Sun> Zen of Go <2020-10-02 Fri> Tips for clean code with Go <2020-09-18 Fri> Make or New ?
J
<2026-08-28 Fri> Quest for the eternal Dock - lambdock - How embedding a Lisp engine created an infinitely extensible program for your daily usage and workflow improvement, Guile Scheme + C + GTK4 built the dock Wayland was waiting for, after many failed prototypes and effort. <2025-10-27 Mon> Increase the file descriptor count in GNU/Linux <2025-03-04 Tue> Moving from Sway to Hyprland - Archived SwayFX config - After using Sway as my daily Wayland compositor for quite some time, I recently…
J
<2021-12-02 Thu> rc.d scripting <2021-09-17 Fri> pkg or ports ? <2021-08-31 Tue> Practical rc.d scripting and Go <2021-08-31 Tue> Updating FreeBSD in iocage <2020-11-19 Thu> Jails with a loopback IP <2020-11-19 Thu> Root on ZFS with partitions <2020-09-19 Sat> Running PostgreSQL on FreeBSD
J
Learn how to setup your favourite text editor, Emacs, as a super powerful and capable Scala IDE (integrated development environment) with the latest and most performant approach. <2026-10-23 Fri> Emacs finally folds to my liking - Emacs finally folds to my liking ... and understands what folds are in many languages and modes.. this really feels like absolute power and overview capability. <2026-07-20 Mon> Emacs Eglot for Scala and Kotlin (JVM) - Enjoy Emacs and its built-in language server…
J
<2026-12-04 Fri> Olive CSS: Tailwind's class names, a Lisp engine, no JavaScript - a utility-class framework whose generator is a Guile program: every rule written once at build time, then pruned to the few kilobytes a page really uses, with no npm, Node or runtime <2026-10-12 Mon> Where hexagonal architecture shines, and what to reach for instead - Ports and adapters pays where the domain is the complicated part. Here is how it looks in Kotlin with Spring, in Guile Scheme and in Haskell, and…
J
<2021-01-16 Sat> Shared Libraries with Jenkins