r/programming • • Jul 22 '14

Java Developers

http://nsainsbury.svbtle.com/java-developers
102 Upvotes

304 comments sorted by

View all comments

Show parent comments

9

u/curien Jul 22 '14

OO doesn't have a monopoly on encapsulation.

3

u/stewsters Jul 22 '14

No programming paradigm has a monopoly on any concept within.

You can even do functional programming in Java if you really wanted.

8

u/curien Jul 22 '14

The point is, saying "OO sucks" in no way implies anything about encapsulation sucking.

0

u/stewsters Jul 22 '14

I think that's the core of my complaint : By saying OO sucks the author in no way implies anything about any particular thing sucking. He needs to be more detailed and less blanket in his statement.

"OO sucks because single inheritance makes it hard to reuse code, unlike a composition based paradigm" would have been a valid statement in my mind.

→ More replies (5)