Functional Programming for Pythonistas
summary
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
chapters (7)
- 0:00Introduction
- 8:57Side Effects
- 11:54Referential Transparency
- 13:29FlatMap
- 16:22Recursion
- 18:04Common Pitfalls
- 19:37Resources
related talks
30mFunctional Programming in Python
39mFunctional Programming in Python
43mFunctional Programming in an Imperative World. Maybe
02h 43mFunctional Python
44mFunctional Programming You Already Know
37mFunctional Programming for Data Scientists
29mWriting Functional Code in Python
49mFunctional Programming Essentials
