Leinonen

Code, Mindfulness & Minimalism

Coming Soon December 12, 2025
The Virtue of Slow

November 6, 2025

Building an x86 Assembly Emulator with VGA Graphics Support

Dive into a nostalgic journey with an x86 assembly emulator, crafted to revive the magic of the 90s demoscene. This emulator, built in Go, supports VGA Mode 13h graphics, allowing you to write and run authentic assembly programs with colorful pixel art just like the old days. Experience the thrill of low-level programming and rediscover the creativity that defined a generation of coders. Whether you're a veteran or a curious newcomer, this project offers a unique glimpse into the past with modern tools.

Read more

September 24, 2025

Building Safe SQL Queries in Go: A PostgreSQL Query Builder

Stop relying on string concatenation for SQL queries in Go and embrace a safer, more maintainable approach with a type-safe query builder. This blog post outlines the pitfalls of string concatenation, such as SQL injection risks and maintainability challenges, and introduces a robust query builder solution. Learn how this tool enhances security by using parameterized queries, improves readability with a fluent interface, and ensures type safety. Enhance your Go applications with secure, efficient, and easily testable SQL query construction.

Read more

September 21, 2025

Custom Unmarshallers in Go: Parsing Data Your Way

Discover how to leverage custom unmarshallers in Go to handle complex real-world data parsing challenges. This blog post explores the use of Go's json.Unmarshaler interface to transform inconsistent API data into clean, type-safe structures. Learn how to convert string values to enums, manage nested JSON objects, and implement validation directly in the unmarshalling process. With tips on performance, error handling, and testing, this guide helps you maintain clean and efficient code while managing messy external data formats. Perfect for developers looking to streamline data transformation in Go applications.

Read more