PHPz for the rest of us

34
PHPZ FOR THE REST OF US github.com/divarvel/phpz

description

Functional programming for PHP

Transcript of PHPz for the rest of us

  • 1. PHPZ FOR THE REST OF US github.com/divarvel/phpz

2. FUNCTIONAL PROGRAMMING 3. Purity 4. No side effects 5. Equational reasoning 6. Live code on FTP 7. No type system 8. Easy and robust deployment 9. Strong ecosystem 10. HOW TO COMBINE THE BEST OF BOTH WORLDS? 11. Z 12. Functional data structures in PHP 13. TYPE CLASSES 14. IMPLICIT RESOLUTION AT COMPILE TIME 15. No types 16. No generics 17. No implicits 18. No compile time 19. No nothing 20. SOLUTION: GLOBAL MUTABLE STATE 21. Mutable dictionary 22. Mutable dictionary at runtime 23. Mutable dictionary at runtime String indexes everywhere 24. Mutable dictionary at runtime String indexes everywhere 25. Mutable dictionary at runtime String indexes everywhereMethods injection with __call 26. It works! 27. Defining an instance 28. Using typeclasses 29. Userland code 30. I did it for the LULz 31. Get it hot https://github.com/divarvel/phpz https://github.com/Geal/pharsec https://github.com/Geal/pod http://blog.clement.delafargue.name/posts/2013-04-01delicious-burritos-in-php-with-phpz.html @clementd on twitter