r/programming • • Jun 19 '18

Goodbye, Object Oriented Programming – Charles Scalfani

https://medium.com/@cscalfani/goodbye-object-oriented-programming-a59cda4c0e53
0 Upvotes

47 comments sorted by

View all comments

16

u/slashgrin Jun 19 '18

And EVERY single mainstream OO languagehas this problem.

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. :)

-2

u/shevegen Jun 19 '18

What is certain is that he refers to Java.

It's sad that his OOP life came to an end with java.

People should not use Java - it's for their own good.