Clean Up Your GOOOP: How to Break OOP Muscle Memory
May 13, 2024
34 min
Free
go
golang
oop
object-oriented-programming
design-patterns
software-architecture
clean-architecture
dependency-injection
interfaces
composition
refactoring
Description
Many Gophers, perhaps most of us, come to Go from other programming languages, often object-oriented languages like C++, Java, or C#. The OOP world is filled with 40 years of patterns and idioms, and it's easy to carry that muscle memory into Go. This talk explores common constructs, patterns, and idioms from Object Oriented Programming and shows how to translate them to idiomatic Go, avoiding the pitfalls of direct translation and preventing "GOOOP" (Go with OOP).
It covers how to approach concepts like classes, inheritance, and package design in a Go-centric way, emphasizing the practical and efficient nature of the language.