Railway-Oriented Programming in PHP

Railway-Oriented Programming in PHP

Whether it's lambda functions (closures), immutable objects in PSR-7, or the pipe operator RFC (https://wiki.php.net/rfc/pipe-operator …), functional programming has been the in-vogue influence on PHP in the last few years. Can we harness it to create code that's far more reusable than objects are?

In this talk, Stuart will introduce you to railway-oriented programming (ROP), a functional approach to reusable composition from Scott Wlaschin. Together, we'll build up an implementation of ROP in PHP, and at the end, we'll debate the question: would we use the end result in anger?

Delivered at BrumPHP on 28th March, 2018.

2c1dc90ff7bf69097a151677624777d2?s=128

Stuart Herbert

March 28, 2018
Tweet