3 ms·
FP is clearly useful for data transformations, and this is where you've seen it catch on in Python and even Java. Outside of that, for as theoretically elegant
by dehrmann 3y ago
FP is clearly useful for data transformations, and this is where you've seen it catch on in Python and even Java. Outside of that, for as theoretically elegant it is, the reality of using it for real-world, stateful systems is messier, and the fact that none of them have gotten any traction beyond hobby projects or one-off uses says something.
- sodapopcan 3y ago> and the fact that none of them have gotten any traction beyond hobby projects or one-off uses says something. What are you talking about? One of the world's most resilient systems was written in Erlang (the AXD301)... and was dynamically typed at that, lol. Not to mention WhatsApp, Discord, and others. Based on a thread a few days ago, I think a lot of people who have never used FP before don't seem to realize that outside of Haskell, it's generally very easy to do state in functional languages. Also, they aren't constantly copying entire data structures every time you modify them which some people just refuse to believe for some reason.
- tadfisher 3y agoThe company I work for operates primarily with a monolith Haskell service. There are many companies that use Haskell, not least including Meta. The idea that FP isn't used in real-world projects is, at the very least, outdated; and, at the very worst, flat-out wrong.
- badpun 3y agoThere’s plenty of real-world FP systems written in Scala. In general, FP is not a problem today, because data mutation usually happens in some kind of external database, and the programs people have to write are just stateless transformations of incoming requests (http or other kinds, depending on the application).