zekro' Dev Blog
  • Software Design
  • Web Dev
Sign in Subscribe

Software Architecture

A collection of 4 posts
I made this error so you don't need to
Golang

I made this error so you don't need to

Go's type system is very simple. And this is not even a bad thing in most circumstances, but it also can be very prone to errors if used incorrectly. I am a Go developer since 2017 and a professional Go back end developer since 2021 and I made
Apr 4, 2024 4 min read
How the new loops in Go might become a performance trap
Golang Featured

How the new loops in Go might become a performance trap

In the new version 1.22 of Go, a critical issue with loops, which can cause nasty bugs and unexpected behavior when capturing the reference of a variable in a range loop or when using the value in a closure, has finally been fixed. The change Let's take
Feb 9, 2024 9 min read
Hard-Capping a bytes.Buffer.
Golang

Hard-Capping a bytes.Buffer.

Go has a handy dandy struct called bytes.Buffer [https://golang.org/pkg/bytes/#Buffer] which consumes a byte slice and implements the interfaces io.Writer [https://golang.org/pkg/io/#Writer] and io.Reader [https://golang.org/pkg/io/#Reader]. So, it's simply a slice of memory
May 5, 2021 3 min read
How Dependency Injection makes large Projects more fun to work with.
Golang Featured

How Dependency Injection makes large Projects more fun to work with.

> Because "Dependency Injection" is such a chunky word, I will refer to it as "DI" further in the article. First of all, what the heck is DI? Take the following example: We have a web application which is accessible via a REST API. This application
Apr 16, 2021 4 min read
Page 1 of 1
zekro' Dev Blog © 2025
Powered by Ghost