Re:Generating a Java program with 90% less code
by potta_coffee on Wednesday December 04, 2019 @12:15PM
(#21704179)
This is my main complaint with OOP. It's not a feature of OOP explicitly but I've only seen it in OOP codebases. And the most complicated, awful, snaggletoothed codebases I've had to unravel were all like this - heavily laden with abstractions that weren't really necessary.
[ Parent
| on HN ]
Re:Generating a Java program with 90% less code
by wvenable on Wednesday December 04, 2019 @12:28PM
(#21704387)
OOP exists exactly to solve problems where abstraction is appropriate. So obviously it's going to be implicated in cases of over-abstraction.
It's kind of like how cars are implicated in traffic problems. Everywhere you have heavy traffic, you'll find cars.
Re:Generating a Java program with 90% less code
by potta_coffee on Wednesday December 04, 2019 @04:58PM
(#21707636)
So do you not believe that OOP practices can be abused?
Re:Generating a Java program with 90% less code
by wvenable on Wednesday December 04, 2019 @06:13PM
(#21708208)
I actually said the opposite. Any tool of sufficient power is going to more abused than a tool with less power. You can do more damage with a backhoe than a shovel.
But the fact that you can do more damage with a backhoe than a shovel doesn't mean there is anything wrong with a backhoe or anything good about shovel. Same is true of OOP.
Re:Generating a Java program with 90% less code
by potta_coffee on Wednesday December 04, 2019 @08:03PM
(#21708989)
Got it. I don't have an issue with OOP, just the ways I've seen it abused, mostly by intermediate programmers that are too clever for their own good.