4 ms·
Elm has taught me that pure FP can work beautifully. But it didn't quite catch on, which says something (but not necessarily that this approach is wrong), and i
by the_gipsy 2y ago
Elm has taught me that pure FP can work beautifully. But it didn't quite catch on, which says something (but not necessarily that this approach is wrong), and it's also clealry not suited for every type of programming (e.g. systems programming or other low level stuff).
Pure OOP aka Java has been a mistake, even though it's probably the most popular.
- Nursie 2y ago> Pure OOP aka Java has been a mistake, even though it's probably the most popular. I mean, Java is hardly 'pure' OOP and these days contains a lot of functional type features. I've come to the opinion that sticking to paradigms over practicality is often the problem, and a language that helps you get things done regardless is preferable
- the_gipsy 2y agoJava was hardcore "everything is an object from a class" and basically forced inheritance for most dynamic dispatch for decades. It doesn't matter how much FP candy they slap on top of it now, too late, it will always be stuck in a legacy world of crappy inheritance and everything-nullability. Rust actually is in the sweet spot between both worlds with the best from each side.
- Nursie 2y agoI think whether it matters or not is very much your opinion. And whatever your opinion, Java was never pure OOP, in fact that was an early criticism of the language from OOP purists back in the day. It’s still used in a lot of places and having these features available makes that a much nicer experience. Whether I would choose it for a new project… maybe not. But we don’t always get that choice either.
- the_gipsy 2y agoYes smalltalk and whatnot are supposed to be "real OOP". But today, OOP is just Java's model for most people. Erlang probably got the message passing thing right, but it just doesn't make sense to declare it OOP, today. That is my opinion, that it makes sense to talk about OOP in those terms.
- pjmlp 2y agoPure OOP were Smalltalk and Eiffel, before Java was even an idea.