3 ms·
No single paradigm fits all of a problem. And in my experience, OOP is particularly bad at it. The only reason OOP wins is because it doesn't enforce a single
by joe_the_user 5y ago
No single paradigm fits all of a problem. And in my experience, OOP is particularly bad at it.
The only reason OOP wins is because it doesn't enforce a single paradigm. You write 100% or 99% procedural code, you can write a functional program and encapsulate it. You can write a shell script and pop a GUI on top (it's marvelous in a horrible sort of way). OOP's lack of constraints is what lets it be used all sorts of places.