~/talk

Functional Programming inside OOP? It’s possible with Python

Talkat PyCon Colombia 2021 · 2021-06-19..06-20· [python, functional-programming]
links:none on file
slides:none on file

Argues that Python’s OOP can adopt concrete functional techniques and shows tools and examples: uses functools.partial, generators/yield for lazy evaluation, type hints and Python 3.10 structural pattern matching, and operator and reduce-based composition to replace loops (example: refactor of Django code). Implements a concrete Maybe monad class with bind and an overridden __or__ operator to pipe functions so chains return Nothing instead of raising errors, and demonstrates that small pure functions make unit testing far simpler.

AI-written summary · about

  1. 0:00Intro
  2. 1:03About me
  3. 1:56Why Functional Programming
  4. 2:54Origins of Functional Programming
  5. 5:10Django example
  6. 5:40Immutability
  7. 6:45Mutual Structure
  8. 7:37In introspection
  9. 7:53Curators
  10. 9:06Syntax
  11. 10:56Evaluation
  12. 11:38Generator
  13. 12:22Type annotations
  14. 13:11Github
  15. 13:56Structural pattern matching
  16. 15:07Match logic
  17. 16:37Match wildcard
  18. 17:19Other programming languages
  19. 17:40Current
  20. 18:51Examples
  21. 19:09One argument function
  22. 19:46decorator
  23. 20:15composition
  24. 22:42compose
  25. 23:27monets
  26. 26:03introspection
  27. 26:33review
  28. 27:16conversion rate
  29. 28:40binding functions
  30. 29:50magic method
  31. 30:09chaining
  32. 30:25testing
  33. 31:39positional programming
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.