A friend of mine introduced me to the concept of functional programming this weekend. As someone who's been writing procedural PHP since before PHP supported objects and then gradually transitioned to an OOP-based mindset, the concept of functional programming is kind of blowing my mind.
For those of you unfamiliar with functional programming in PHP...
@davidbhayes ' video on banishing loops with functional programming is a good primary on the basic concept.
If you are more familiar with functional programming in PHP...
I have some question:
- what are some of the main benefits?
- is it mostly about simplifying loops?
- any examples of projects that make good use of functional programming? github links?
- what are the main drawbacks? gotchas?
- Is OOP on its way out?
I haven't been this intrigued by a programming concept in a while. Super curiosu what the dev.to community thinks!
:D I’m so happy to hear that you’re excited about this!!!