DEV Community

loading...

Discussion on: Why isn't functional programming the norm?

Collapse
webbureaucrat profile image
webbureaucrat

A lot of it is legacy, I think. It used to be you didn't have a choice of whether or not you wanted to put up with things like mutation bugs because you didn't have the luxury of creating a new whole new state every time you needed one.

There's also some economics at work--namely the principle-agent problem. Developers (the principle users of programming languages) don't often get to just tell their employers what they'd like the stack to be. So people with business degrees or engineering managers who don't write much code any more make decisions (as agents) to invest in tech that's popular instead of good.

In the long run, I have faith that FP will be the norm as more devs gravitate to FP jobs, but that's a very slow process.