I was recently invited to speak about functional programming in PHP for both BrightonPHP and PHP Hampshire. The details of which are in a previous blog post.

If you attended either talk and you’ve yet to leave feedback then please do on the respective Joind.in pages:

You can view the slides from the sessions on my website. I created the slides using reveal.js and my pandoc boilerplate project.

The main take-aways from the talk are:

Avoid state

Keep things small

Make reusable components

Separate logic from data

These principles apply no matter whether you’re writing in a functional style or object oriented approach. Learning functional programming is great idea even if you do not intend to use it day to day. Things you learn in a functional paradigm are directly applicable to your object oriented code too.

You should follow [@BrightonPHP](https://twitter.com/brightonphp) and [@PHPHants](https://twitter.com/phphants) to keep up to date with these meetups in the future.

I enjoyed presenting at both events and it was great to meet you all!