~/talk

Functional Programming basics for PHP developers

TalkinRussianat PHP fwdays'17 · on Sunday, 2017-06-11· [php]
links:none on file
slides:none on file

Explains that lambda calculus is the foundation of functional programming, contrasting typed lambda calculus (guaranteed termination) with untyped lambda calculus (Turing-complete and undecidable). Covers PHP-specific FP features and limitations: closures, create_function strings, recursion vs loops, lack of tail-call optimization (so recursion can overflow), and shows examples including recursive sum, currying, immutable list operations, and implementing a Maybe monad with flatMap for null/error handling; notes practical tradeoffs and points to Scala and other tools for stronger FP support.

AI-written summary · about

  1. 0:00Functional programming intro
  2. 1:50Code issues causes
  3. 3:16Leibniz and Church origins
  4. 6:25Lambda calculus basics
  5. 9:43Typed lambda decidability
  6. 13:55Category theory insights
  7. 17:13PHP functions syntax
  8. 18:40Recursion and tail calls
  9. 20:30Functional data structures
  10. 22:44Monads in PHP
  11. 24:56Maybe monad practice
  12. 26:43Functional pros and cons
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.