DEV Community

Discussion on: Is Object-Oriented Programming "Dangerous"?

Collapse
 
siranrian profile image
Erik Moffett

I remember was OOP was gaining popularity. The article was very correct in many ways but also had some glaring flaws.

The issue with OOP lies with the programmer using it in unnecessary ways. It is not the fault of OOP that people add unessesary abstraction.

For instance, if your light isn't turning on and you decide to become an electrician to learn how to turn on the light when all you had to do was flip the lightswitch it isn't the fault of the lightswitch that you went way overboard. Yet if you are wiring the electricity in a skyrise you might need to do a bit more that slap light switches on the walls to get things to work right.