News for hackers. Stuff that matters.
Re:nic.funet.fi: Serving freely distributable files with FTP... by juhanima on Saturday August 05, 2023 @07:53PM (#37017444)
To only give up that position to functional programming?
Re:nic.funet.fi: Serving freely distributable files with FTP... by fasterik on Saturday August 05, 2023 @11:34PM (#37018754)
OOP was a mistake. Functional programming has some interesting ideas, but it's not useful in practical applications. Procedural programming is the simplest and fastest way to make the computer do things.
Re:nic.funet.fi: Serving freely distributable files with FTP... by Zambyte on Sunday August 06, 2023 @02:22AM (#37019469)
OOP is orthogonal to FP vs procedural. You can use or not use OOP in both.

Also, OOP is fine. Class oriented programming (often called OOP by accident) is the real flawed paradigm.

Re:nic.funet.fi: Serving freely distributable files with FTP... by msla on Sunday August 06, 2023 @05:13AM (#37020238)
OOP is how large-scale procedural programs are organized. It allows programmers to try to reason about medium-scale parts of the system. (Mesoscale programming? Is that a thing yet?)

FP is a set of guarantees (maybe even enforced by the compiler) about program behavior which enable optimizations, for the compiler, and reasoning about small parts of the system in isolation, for the programmers.

Enough FP can allow you to abstract away the procedural parts, but even a little FP in a procedural codebase can be a good thing. Ditto a little OO, which is why C programmers reinvent bits and pieces of Smalltalk every so often.

Re:nic.funet.fi: Serving freely distributable files with FTP... by amno on Sunday August 06, 2023 @06:34AM (#37020644)
OOP itself is not a misstake, but the way it is (usually) implemented probably is.
Re:nic.funet.fi: Serving freely distributable files with FTP... by pmarreck on Sunday August 06, 2023 @02:37PM (#37025150)
> but it's not useful in practical applications

I mean, it drives all of Whatsapp, Discord, and once upon a time, Facebook Messenger, but it's certainly not "useful"!!

Your claim is as ludicrous as ludicrous can be. About the only thing it's not (yet) good for is 3D game dev, but Rust (which is not purely functional but which has lots of opt-in functional concepts) is making good headway

Re:nic.funet.fi: Serving freely distributable files with FTP... by pmarreck on Sunday August 06, 2023 @02:39PM (#37025168)
One can only hope.

Considering that literally everything is easier in it (EXCEPT for SOME of its conceptual bases), I'm surprised it's taking this long. Modularity is easier, testing is easier, there are no mutation bugs, no mutex locks, you understand program flow better (which means less bugs), you just produce fewer bugs per LOC... just scratching the surface here