Go and Object Oriented Programming

By Eyal Post, System Architect @Gett:

As a new comer to Go, I tried to take my knowledge in object oriented programming and apply it to the language. The first thing I struggled with was understanding how Embedding works. Embedding is sometimes marketed as a replacement for inheritance but it’s actually better to think about it differently. I also tried to take design patterns I’m accustomed to and apply them in Go. This didn’t always turned out well.

This presentation is from a short session I did in our weekly Golang meeting at Gett where we learn and improve our knowledge in the language and become better developers. Although it may seem so at first, the idea was not to promote inheritance or try to hack the language so it feels more like “classic” OOP languages. It was an exercise in how embedding works internally. Don’t try this at home!

What people are saying about this article

Be the first one to comment.