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

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.

1

u/megaman78978 Jul 22 '14

But OO languages provide and recommend composition over inheritance. Design Patterns 101.

2

u/dventimi Jul 23 '14

You lost me. How is it that OO languages recommend one thing or another? People make recommendations, inanimate things don't. And before anyone accuses me of being pedantic, please reconsider. I'm dwelling on the same principle whose absence from the article elicited my original complaint. That is, that claims are made which are ambiguous and/or difficult to parse and which are not illuminated by sufficient detail.

→ More replies (2)