~/talk

Off with their I/Os!—Or How to Contain Madness by Isolating Your Code

Talkat PyData London 2022 · 2022-06-17..06-19· [frontend-architecture]
links:none on file
slides:none on file

Claim: isolate all I/O at the outermost layer so the computation lives as pure functions in a functional core, using pandas.read_csv, sklearn StandardScaler and logistic regression objects in memory. Build a thin worksheet abstraction (gspread-backed and Excel-backed implementations returning numpy arrays) and use dependency injection to pass a test double; tests shrink from ~25 minutes to fast unit tests and integration tests only, and swapping gspread for local Excel works without changing core logic.

AI-written summary · about

  1. 0:00Start
  2. 1:25Disclaimer
  3. 8:11Pure Functions
  4. 11:11Onion Architecture
  5. 17:30Confusion Matrix
  6. 24:46Dependency Injection
  7. 25:53Abstraction Layer
  8. 29:29Class Inheritance
  9. 29:50Duck Typing
  10. 34:45Ios Should Occur at the Highest Level
~/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.