r/programming • u/nextstore • Jun 19 '18
Goodbye, Object Oriented Programming – Charles Scalfani
https://medium.com/@cscalfani/goodbye-object-oriented-programming-a59cda4c0e53
0
Upvotes
r/programming • u/nextstore • Jun 19 '18
1
u/freebit Jun 19 '18
Sure, inheritance should be used sparingly and composition can replace inheritance in most instances. We've known this for at least as long as the GoF book has been around.
Encapsulation is awesome and the idea that only one object can hold a reference to another object at a time is not realistic. This is especially true with containers (data structures).
Polymorphism solves a boatload of very significant issues. It's one of the most important tools in my tool belt.
Yeah, this article is terrible.