Recent posts

Exec as root user in Kubernetes

1 minute read

Hi 👋, In this short tutorial I will show you a way of getting a root shell in containers running inside a modern Kubernetes cluster. Prerequisites: Roo...

Using confluent-kafka-go on MacOS M1

1 minute read

Hello, TLDR; brew install librdkafka openssl@3 pkg-config export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig" go test -tags dynamic ./... I...

DeMorgan’s Law

less than 1 minute read

DeMorgan’s law is a simple law that I learned at UPT during one of my hardware classes. While it is useful in hardware it, it is also useful when writing pr...

Object Pool Pattern

4 minute read

Hi 👋 In this article we’ll talk about the Object Pool pattern in Golang. The Object Pool pattern is a design pattern used in situations when constructing o...

Testing Tips: Avoid sleep in tests

3 minute read

Hi 👋, In this article I want to show a testing tip that I’ve recently learned myself by reading Software Engineering at Google: Lessons Learned from Program...

HTTPClients are reusable

less than 1 minute read

Hi 👋, I wanted to write this article to tell you that instantiating a HttpClient class is often a costly operation. If you have a method that does somethin...

Go Pattern: Sorting a slice on multiple keys

1 minute read

Hi 👋 In this article I want to highlight a simple pattern for sorting a slice in Go on multiple keys. Given the following structure, let’s say we want to s...