News for hackers. Stuff that matters.
Re:Select * from cloud by avgcorrection on Friday September 30, 2022 @12:56PM (#33037346)
Just a slow-to-die 90’s fad in the end.
Re:Select * from cloud by kwhitefoot on Friday September 30, 2022 @02:16PM (#33038534)
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-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-182475457a0...

Re:Select * from cloud by randomdata on Friday September 30, 2022 @10:55PM (#33043379)
> 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/

Re:Select * from cloud by avgcorrection on Friday September 30, 2022 @03:41PM (#33039753)
> 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...

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?