Go's Inheritance Enigma: Exploring Unconvential Patterns

Preamble So, before we dive in, let’s make sure we’re on the same page. I’m assuming you’ve had some run-ins with Go and interfaces before – they’re kind of a big deal here. Oh, and pointers – they’re like the secret sauce in Go programming, so having a good grasp of those will definitely come in handy. Ready? Let’s crack this inheritance enigma wide open! Introduction Transitioning to Go from more conventionally object-oriented counterparts like Java and C++ can be an eye-opening experience. [Read More]

A Guide to Interfaces in Go

In Go, interfaces take the center stage. They are more flexible and more powerful than their counterparts in other languages. When coming to Go from another language, this may not be immediately obvious, yet this realization is quite important for our ability to write well-structured and decoupled code. Let’s explore exactly how flexible they are and how we can make the best use of them. Preamble I’ll assume that you have at least a passing familiarity with the Go programming language and interfaces. [Read More]