News for hackers. Stuff that matters.
Re:Throwing in the towel on becomming a programmer by lutusp on Saturday February 15, 2014 @03:31AM (#7243108)
To me, one of the advantages of objects is that I can tune the object's functions and data structures to get the behavior I want, then while working at a different level of abstraction, I only need to remember the object's interface, not its internals, which makes it easier to use its abilities in a consistent way.
Re:Throwing in the towel on becomming a programmer by andreasvc on Saturday February 15, 2014 @07:19AM (#7243558)
I agree with this advantage, that's what I meant with "the modularity aspect"; a non-OO programming language with support for modules also offers this. However, as soon as you get to non-trivial and often gratuitous inheritance hierarchies, it gets in the way of at least readability and probably also maintainability. Example: instead of String, you get AbstractMutableStringOfWesternCharacters, all the way to ArrayBasedStringOfASCII and everything in between. Suddenly to understand one function, you have to read and understand n classes, because they are part of the inheritance chain.