| "Saying "Are we still doing OOP?" is like saying "Are we still using categorization and set theory" which sounds to me a LOT like "Are we still using arithmetic?"" OO is hardly equivalent, and not as fundamental (or anywhere near fundamental) as Set Theory, leave alone Arithmetic. The implied equivalence is misleading. You can use "categorization" and Set theory to design programs with never an Object in sight. Types and (mathematical) functions are both defined using Set Theory as are Relations (as in relational databases). You could program in Haskell with only types and functions and monads and such with no "object oriented design". The primary difficulty for people who've only done (what some call) "OOP" is forgetting all the OO technique they learned. At best you could say that objects (for various definitions of "OO") could also be expressed with Sets and (mathematical) functions and such. ALmost every programming language feature could be so expressed, that isn't saying much. There is no specifically "Object Oriented" super technique that transcends all languages (both OO and non OO) and is applicable in all of them. You'd be cutting against the grain of many languages if you tried to think in OO while using them. LIke Fortan, you can write "OO" in any language and it isn't always a good thing to do. Not defending the author of TFA ( I don't read these "Ohh technique X or language Y is so outdated" type of articles any more) but the sentence quoted (' "Are we using OO" is lik e "Are we using Set Theory" ') is as generic and misleading as anything the author claimed. Balance in all things. |
Here's a wonderful example. Let's say you're in C. You start writing code and continuously refactor as you go along. What most people find is, after a good bit of coding and refactoring, you end up with code grouped in modules with public and private functions, public and private data, etc. You can have data abstraction, encapsulation, modularity, polymorphism, and inheritance -- all to varying degrees, depending on the problem and solution.
OOP takes that categorization and set work and makes it part of the language. But programming in objects -- true OOP - does not require a language that provides objects. In fact, it's the other way around: because people programmed in objects, languages started providing that capability. Where folks get lost in the woods is where they think the language features are OOP instead of the conceptual work. Languages are just varying levels of syntactic sugar on top of the core tools.
Hope that clears it up for you