Adam Wathan presents a talk on improving code quality by eliminating loops, conditionals, and temporary variables using Laravel Collections and functional programming concepts. He demonstrates how to refactor complex nested loops into cleaner collection pipelines using methods like map, filter, flatMap, and contains. The talk includes practical examples ranging from data transformation to simple conditional checks, showing how collections can make code more expressive and maintainable.
This talk explores LISP programming concepts and their potential applications in PHP. The speaker covers the history of LISP, demonstrates core LISP concepts like lists and recursion, explains macros, and discusses how LISP-inspired features could enhance PHP development. The talk includes examples of implementing LISP interpreters in PHP and explores functional programming concepts like the Y combinator and Church numerals.
The talk demystifies monads by explaining them as ordinary data types with specific operations and rules, similar to stacks and collections. The speaker uses practical examples in PHP/Laravel to show how monads are already being used (like Laravel's fluent syntax, JavaScript promises, and jQuery), and demonstrates how to implement basic monads like Maybe and Many to handle null checking and collections in a functional way.