Functional PHP


Comments are closed.

Chris Emerson at 12:58 on 26 Nov 2016

I think this serves as a good introduction to the concept of functional style programming in PHP.

There were some parts in there which I considered incorrect or perhaps irrelevant - the suggestion that functional programming should/can be about getting things down to 1 line or for speed benefits I think were incorrect, and some more time needs to be spent on the benefits of functional programming - absense of state or side effects making code less error prone and more testable for example.

The examples on using anonymous functions and functions without side effects (such as array_sum) were a good start on programming in a functional style in PHP though and should encourage some more people on look into it further.

Ben Plummer at 21:53 on 26 Nov 2016

I have used functional programming languages before so to see an example of how PHP, a predominantly OOP language now, can be used in this way was interesting. The array_sum example was great to show the concept, however I believe some other areas were irrelevant, which has already been mentioned.

I'm aware this was quite an impromptu talk for Rob and given that, it was still a good introduction to the topic that was delivered confidently and left me wanting to look into the topic more. I look forward to seeing a revised version in the future!

Was clearly presented with confidence and was good to hear about certain parts about functional programming but I feel some parts were misleading into benefits of functional programming. There was not enough emphasis about immutability and how to manage modularity through functions. Would have been good at a real world example of a problem to solve to give more clarity and context.