2 ms·
A lot of comments/articles complaining about Object Oriented Programming -- especially the style implemented by C++ and similar languages -- start with premise
by wvenable 3y ago
A lot of comments/articles complaining about Object Oriented Programming -- especially the style implemented by C++ and similar languages -- start with premise that OOP is some academic prescription declared from up high like Moses and 10 Commandments.
But the reality is that the best practices of imperative programming where already much like object oriented programming and that OOP is a formalization of those practices.
- pjmlp 3y agoIndeed, I see many of the concepts as extensible modules, as one would use from Modula-2 or Object Pascal. That is why Oberon takes the spartan approach of only having extensible types, everything else is just like in Modula-2. Later descendants adopted a more mainstream approach. Likewise how OOP is done in Ada or Modula-3 isn't quite like in mainstream approach. Or when modules can be manipulated like variables, and given type signatures, we get Standard ML functors, with overlapping capabilities to OOP.
- User23 3y agoStrongly agree. Good C developers pretty much instinctively do structured programming[1]. While it's superficially dated, the core concepts are still all very much applicable to the working programmer today and even largely paradigm independent. [1] https://dl.acm.org/doi/book/10.5555/1243380 https://dl.acm.org/doi/book/10.5555/1243380 (lousy interface, but PDF download available)