by thunderbong · 3y ago · 0 comments
> I think Object-Oriented Programming was an important advance over procedural programming, which is what we had been doing, but we’re stuck. We’re supposed to change paradigms every generation, and we haven’t. So we’re way behind now. Object-Oriented Programming hit the mainstream in 1980. We’re in the 2020s and we’re still there. We should have moved on.
We should move on when we find something that is objectively better, not because some years have passed.
And honestly, the only new thing that seems to be better than the current paradigm is Rust borrow model, which is not against object orientation, it compliments it.
The 90s-flavor OOP we're stuck with in many places is objectively bad for performance (see e.g. Mike Acton's takes on what he calls "Data-Oriented Design") as well as readability/understandability (where I'd say languages with a culture around more FP concepts and immutability have a way better track record) and concurrency (see Erlang/Elixir).
And, as always, you can simulate the useful properties of other paradigms, but that only goes so far. I think what the original quote laments is that the median software developer is leaning way more on "we've always done it this way" as a way of guidance instead of better ideas replacing the old ones.
Edit: Also: I totally agree with you about Rust, but I can't help but notice that Rust mainly stops you from doing dumb things (no inheritance, borrow checker…), which effectively dials back many of the… more unfortunate concepts/idioms of 90s OOP.
1. In order to avoid ambiguities they'd need to use concrete vocabulary.
2. Any non-trivial program will need to consist of multiple input statements. Those input statements will have some kind of relationship to each other. This is roughly what a grammar is about.
3. Those future programmers will somehow need to check if the program does what it's supposed to do. They'd run it with test data.
Combine 1-3 and see that we just described, what a programming language and its ecosystem (compiler, runtime, etc.) do. Thus, programming languages are nowhere near to die out, they will just shift things higher up the layer lasagne.