In Today's video we go over using data containers (also called Optional or Maybe) with some extra functional sugar added to create clean code. We use a function pipeline on our Maybe object with clearly named functions to process data though a series of transforms. We let the data container handle all error handling producing a nice clean and unit testable function.
If you like this video you may also like BitSlip's Unit Testing frame work and PHP Firewall:
Tiny Test: https://github.com/bitslip6/tinytest
Bit Fire: https://github.com/bitslip6/bitfire
Thanks for watching, please like and subscribe for more security and PHP programming content. Cheers!