TFW a software engineer shouldn't wonder whether, but why. I find this true for #functionalprogramming in #php . Why is that useful? Please enlighten me!
Here's a free to read reference:
https://leanpub.com/functional-php/read
And here's a quick primer:
https://dev.to/mchojrin/functional-programming-in-php-what-why-and-how-3ijc
@aeveltstra I refer you to my own book, which is several years less dated. :-)
https://leanpub.com/thinking-functionally-in-php/
But Gina in another reply mostly has it. FP is a collection of practices that have benefits in terms of keeping the code self explanatory and eliminating classes of weird bugs through constraints. Pure functions and immutability in particular.
I had a blog series for AoC a while back, too. Links here: