What’s so great about functional programming anyway?
GOOD: having large chunks of code that runs (mostly) without side-effects. As projects get bigger global state can trip you up, so try to keep it in check. That&#x27;s where the real value of functional programming is.<p>BAD: copying data needlessly and turning trivial stuff into a functional pipeline that is impossible to debug. You want your code to read top to bottom like the problem you&#x27;re trying to solve, if at all possible. If your call stack looks like map, fold, reduce you&#x27;ve introduced a ton of complexity, and why exactly?<p>Every programmer should understand functional programming. Higher order functions can be super useful. Immutable objects are invaluable for preventing subtle bugs. But if you feel the need to transform simple linear code into a map of higher order functions because of some abstract benefits you&#x27;re probably doing stuff that&#x27;s too easy for you and you should get your mental challenge from solving a more difficult problem instead.