Hacker News new | past | comments | ask | show | jobs | submit login

For an understanding how to do OO design in Go, learning about component programming is a good way.

http://www.amazon.de/Component-Software-Beyond-Object-Orient...

The first edition used Component Pascal from the Oberon family, which Go gets some influence from. Later editions used Java and C# instead.

Additional learning about how COM and XPCOM work is also a way to get some ideas.




Yes Go is similar to COM in that it focuses on interfaces and leaves out implementation inheritance which causes so much trouble. COM was way ahead of its time on that.

"Component Oriented Programming = Polymorphism + (Really) Late Binding + (Real, Enforced) Encapsulation + Interface Inheritance + Binary Reuse"

Apart from "Binary Reuse", the definition above is what object oriented programming is really all about (I think).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: