~/talk

Functional Programming for Pythonistas

Talkat PyCon AU 2016 · 2016-08-12..08-16· [functional-programming, python]
links:none on file
slides:none on file

Claims that adopting functional patterns makes Python code clearer, more testable and easier to reason about, with concrete techniques: use immutability instead of mutating shared lists (an anecdote shows a Gradle filter that deleted all dependencies), separate side effects from pure logic so tests become simple inputs→outputs, implement higher-order patterns with map/filter/reduce and a simple flatmap to avoid nested lists, use referential transparency where possible, and avoid deep recursion in Python by preferring comprehensions, reduce and trampolines when necessary.

AI-written summary · about

  1. 0:00Introduction
  2. 8:57Side Effects
  3. 11:54Referential Transparency
  4. 13:29FlatMap
  5. 16:22Recursion
  6. 18:04Common Pitfalls
  7. 19:37Resources
~/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.