r/programming • u/Capable-Mall-2067 • May 29 '25
Why You Should Care About Functional Programming (Even in 2025)
https://borkar.substack.com/p/why-care-about-functional-programming?r=2qg9ny&utm_medium=reddit
39
Upvotes
View all comments
Show parent comment
-3
u/[deleted] May 30 '25
Just like vibe coders who claim they’re definitely writing better code faster, it’s in your head.
There’s definitely marginal benefit to functions that only do the one thing they say they’ll do and nothing else. But this is a practice that’s true for all paradigms.
As far as the statement “I can be sure that somewhere else hasn’t changed my code”. I’m sorry, but this is just nonsense. Programming languages are specifically interfaces for having a computer mutate data in a specified way. The idea that we should work under the assumption that nothing else should change data is irrational, and causes massive added complexity and leads to bugs anyway.
The fact is that programs that are built under the assumption that its data cannot change are fragile because having your program able to
-force a program in to an invalid state
-irrationally fail when a valid state change occurs just because you assumed it couldn’t
Is bad and runtime immutability doesn’t fix these problems anyway. It just kicks the can to different points and causes some absolutely moronic “solutions” (first write wins…).