3 ms·
OOP is considerably older than '90s. Turbo Pascal 5.5 had objects in 1989 and was far from the first. Anyway structs plus FP is no less object oriented. You
by kwhitefoot 4y ago
OOP is considerably older than '90s. Turbo Pascal 5.5 had objects in 1989 and was far from the first.
Anyway structs plus FP is no less object oriented. You just don't have to write the methods in the same code module. See NIM Method Call Syntax for example: https://nim-lang.org/docs/tut2.html#object-oriented-programming-method-call-syntax https://nim-lang.org/docs/tut2.html#object-oriented-programm...
Yes, I know NIM is not purely functional. Use F# instead to get a bit closer to purity, it also does OOP quite nicely as does pretty much any functional language that has closures.
OOP is a tool just as Git is a tool.
See also: https://medium.com/extreme-programming/oop-vs-fp-182475457a01 https://medium.com/extreme-programming/oop-vs-fp-182475457a0...
- avgcorrection 4y ago> OOP is considerably older than '90s. Fad means popular (in a deragetory way). 90’s was its popularity heyday. > See NIM Method Call Syntax for example: https://nim-lang.org/docs/tut2.html#object-oriented-programm https://nim-lang.org/docs/tut2.html#object-oriented-programm... So oop is when you `obj.methodName(args)` instead of `methodName(obj, args)`? Well if that’s all it is about then I can get behind it... > OOP is a tool just as Git is a tool. An iron maiden is just a tool. Don’t be hatin’ it’s just a tool what has it done to you?
- randomdata 4y ago> FP is no less object oriented. In fact, Erlang (and Elixir, I suppose) may be the only object-oriented programming language[1]. [1] https://www.infoq.com/interviews/johnson-armstrong-oop/ https://www.infoq.com/interviews/johnson-armstrong-oop/