8 ms·
The question is then, why should object oriented languages be taught? It seems to me that for last 25 years or so the true object orientation has been a histori
by oriolid 4y ago
The question is then, why should object oriented languages be taught? It seems to me that for last 25 years or so the true object orientation has been a historical curiosity that inspired polymorphism and encapsulation and only interest for people who want to argue that this and that language aren't true object oriented languages.
- jen20 4y agoIndeed: I wouldn’t bother. Teach procedural and functional programming to undergrads as primary focuses. However, polymorphism and encapsulation have existed for much longer than “OO” languages. What is stdout? Seems pretty polymorphic to me. How does one gain access[1] to a variable declared in a .c file that is not exposed via the header. That’s encapsulation… [1]: there are of course ways, but they are often also true of private members of class instances too.
- oriolid 4y agoGood point. I was thinking about the C++/Java meaning of the words because that way of doing things has proved to be useful but they're not the only way indeed.