3 ms·
Object oriented programming has vastly simplified and improved programming. Come on! I would hate to develop an average GUI app without OO!
by Synaesthesia 16y ago
Object oriented programming has vastly simplified and improved programming. Come on! I would hate to develop an average GUI app without OO!
- danieldk 16y agoYes, but UI is a typical use case where OOP works well. Everything can neatly be distinguished in classes: buttons, combo boxes, etc. But look at numerical software implemented as OOP. Quite often it is absolutely horrible. I wrote such dreadful and unmaintainable code as well, because it was taught in school that OOP everywhere is the way to go. OOP and inheritance is often mistaken as the path to genericity. Parametric polymorphism with constraints (e.g. typeclasses) is far more useful to that end. OOP is great in some domains, but the 'OOP everywhere' philosophy needs to go. We have already tainted enough generations of students with such beliefs.