Solve real business challenges on Google Cloud and run workloads for free. For Slashdot users: Get $300 in free credits to fully explore Google Cloud. Get started for free today.
I always compared OOP to building with Lego bricks... However, do keep in mind how your floor looks prior to building anything... Ah, and there's always some blocks left, that should have been used... somewhere....
Whoa there (even if it IS Troll Tuesday) - I never EVER in my life said, or believed, that "every program must be OOP":-p
OOP is the opposite of the "silver bullet". By letting you cover up some complexity, all you do is kick the can down the road - programs that are simple can be made conceptually simpler with OOP - programs that are past a certain point of complexity will will (de)generate into more complexity with OOP.
... again, mis-characterizing what I wrote. I have never chosen "to blindly apply OOP to every problem". To the contrary, if I could, I'd spend my days writing assembler - there's simply nothing cleaner and more flexible on the planet, and it's a lot easier to recognize when you're about to shoot yourself in the foot, whereas part of the attraction of OOP is that we like to build things, and we get enamored to the act of building complexity, rather than reducing it. THIS is what is wrong with OOP.
Legos (Score:1)
Mod this up. (Score:2)
Re: (Score:2)
Whoa there (even if it IS Troll Tuesday) - I never EVER in my life said, or believed, that "every program must be OOP" :-p
OOP is the opposite of the "silver bullet". By letting you cover up some complexity, all you do is kick the can down the road - programs that are simple can be made conceptually simpler with OOP - programs that are past a certain point of complexity will will (de)generate into more complexity with OOP.
So in the end. the trade-off just isn't worth it.
Re: (Score:2)
... again, mis-characterizing what I wrote. I have never chosen "to blindly apply OOP to every problem". To the contrary, if I could, I'd spend my days writing assembler - there's simply nothing cleaner and more flexible on the planet, and it's a lot easier to recognize when you're about to shoot yourself in the foot, whereas part of the attraction of OOP is that we like to build things, and we get enamored to the act of building complexity, rather than reducing it. THIS is what is wrong with OOP.
But
Re: (Score:2)
Come on, there's still a few hours left in Tuesday - you can do better.