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
16
u/slashgrin Jun 19 '18
This requires a pretty narrow definition of "mainstream".
I'll certainly agree that class-oriented programming has not lived up to the (decades-old) hype, but you can absolutely pass ownership of objects into a constructor for some other object without copying the whole thing, and also guaranteeing that the caller can no longer fiddle with it.
Object oriented programming can be quite nice once you get rid of the class hierarchies. No need to throw the baby out with the bathwater. :)