Summary of GopherCon 2023: Clean Up Your GOOOP: How to Break OOP Muscle Memory - Dylan Bourque

Key Points and Concepts:

Conclusion:

Dylan Bourque encourages Go developers to unlearn traditional OOP practices and embrace Go's unique paradigms to avoid creating complex, hard-to-maintain code. He advocates for simplicity and practicality in Go programming.

Main Speaker:

Notable Quotes

03:10 — « The thing with oo though is that we can end up fixating on defining abstractions and creating type hierarchies that implement them in a way that mirrors some real world scenario. »
03:46 — « Fizzbuzz Enterprise Edition uses all 23 design patterns from the classic gang of four book; everything is insulated from everything else so the code is maximally flexible. »
08:31 — « The go compiler is happy to accept T3 do base thing as an argument but it will call base thing's do stuff method, not the overridden method on the fancy thing. »
20:34 — « Stop it! You have an interface that redeclares every method on an implementation which means it needs to be updated anytime any new functionality is added. »
28:10 — « Go is a different kind of language though; blindly applying those past oo experiences and using those patterns and idioms without adjusting them for go can lead to a complex hard to maintain mess. »

Category

Technology

Video