Sql , Golang· November 18, 20244 Tips for Working with Sqlc in GoThis post shares 4 tips for effectively working with Sqlc in Go. It covers handling bulk updates with parameterized queries, using CASE and NULL for conditional filters, and organizing query types across packages to reduce type pollution. These strategies help maintain clean and scalable code when using Sqlc.9 Minute Read
Golang· February 28, 2024Pluggable Architecture in About 300 Lines of CodeThis blog post guides readers through implementing a pluggable architecture in Go using around 300 lines of code. It introduces the concept, outlines essential requirements, and walks through the plugin interface and runner.6 Minute Read
Golang , Programming· August 21, 2023Distributed Locking With PostgreSQLLearn how to use Postgres native feature to coordinate work across several processes, acting as a mutex.3 Minute Read
Golang , Programming· May 5, 2023Writing Generic Mappers in GoIn this short post, we’ll look at a generic implementation of a mapper functions, and how to extend it to support some common use cases.4 Minute Read
Golang· March 28, 2023TIL Creating Transient Databases For TestingThis post explores an approach to unit testing database-dependent code by implementing a single backing Postgres instance and a disposable database for each test case.2 Minute Read
Golang , Programming· January 18, 2023Reduce Boilerplate in Go Http Handlers with Go GenericsIn this article I’m going to walk through how I’ve been able to reduce boilerplate code and ensure that my handlers have consistent behavior across my application.9 Minute Read
Golang· December 8, 2022Go Errors Cheat Sheet 2022Error handling is a critical part of any software development project. In this post we’ll look at some of the common ways that you’ll handle errors in Go and a few of the common pitfalls that you’ll encounter.6 Minute Read
Golang , Homebox· November 13, 2022TIL Using Custom Marshaling in GoA quick look at how to use custom marshaling in Go and why you might want to.2 Minute Read
Golang· August 13, 2022Starter Http Client Abstraction In GoMy go-to snippet for starting a simple HTTP client abstraction in Go.4 Minute Read
Programming , Golang· February 2, 2022TIL: Testing Parametrized URLs with Chi RouterToday I learned that it’s possible to slightly decouple your http handler tests from your chi router. Well sort of…1 Minute Read
Golang· September 15, 2021Resources for new Gophers in 2021These resources have made all the difference in going from scratching my head, to actually writing an application that makes sense and that I’m excited to keep working on.4 Minute Read