phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

709
active users

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:
leanpub.com/functional-php/read

And here's a quick primer:
dev.to/mchojrin/functional-pro

leanpub.comRead Functional PHP | Leanpub
Larry Garfield

@aeveltstra I refer you to my own book, which is several years less dated. :-)

leanpub.com/thinking-functiona

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:

peakd.com/hive-168588/@crell/a

LeanpubThinking Functionally in PHPFunctional programming in PHP 7.4, with a side of category theory and monads accessible to everyone.