Talk in English - UK at PHP East Midlands Unconference 2016
Track Name:
Track 1
Short URL: https://joind.in/talk/e43e4
(QR-Code (opens in new window))
Functional PHP
Comments
Comments are closed.
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.
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.