Re:Why is OOP still so widely spread?
by TwoBit on Wednesday September 02, 2020 @07:28PM
(#24359385)
I hear "I tried FP and learned a lot but it wasn't practical" all the time. Far more than the inverse.
[ Parent
| on HN ]
Re:Why is OOP still so widely spread?
by dnautics on Wednesday September 02, 2020 @08:23PM
(#24359695)
There's probably a sampling bias, because of the attitude that one should learn Haskell "to be a better programmer". The FP universe is far broader than the pure FPs. Need I remind: Twitter went from RoR to Scala, ostensibly for practical (performance) purposes, though with hindsight they could have figured out how to scale RoR. So it's hard to argue that nobody has gone the other way strictly for "practical" reasons.
It's also hard to argue that Whatsapp hasn't been wildly successful at scaling to a billion users on a miniscule engineering team in spite of "impracticality of FP".
Re:Why is OOP still so widely spread?
by sangnoir on Thursday September 03, 2020 @12:24PM
(#24365652)
> So it's hard to argue that nobody has gone the other way strictly for "practical" reasons.
You've made explicit another confounding factor: a language is more than its syntax - you have to consider the entire ecosystem and constraints being operated under - including tooling and libraries
Re:Why is OOP still so widely spread?
by patrickthebold on Wednesday September 02, 2020 @09:32PM
(#24360067)
I think there are some subtleties hidden in the word 'practical'. There are differences between:
My company has 200 Java engineers, and a dozen systems written in Java; it's not practical to migrate everything to <FP language>.
Spring Boot solves so many things out of the box that I'd have to implement myself in <FP language>, which isn't practical.
FP has a lot of features but it's not practical to maintain a large complex codebase using those features.