~/talk

Side Effects are a Public API

Talkat Strange Loop 2015 · 2015-09-24..09-26· [testing]
links:none on file
slides:none on file

Argues that side effects should be explicit values and shows a working Python library that implements that: Effect library for Python uses a do-style generator decorator, intent objects like Prompt and Display, a type dispatcher to map intents to performers, and sync_perform to run effects. Tests declare an expected sequence and use perform_sequence testing API to simulate results and assert order. Covers Twisted integration (TXEffect), a parallel-effects intent, and a Haskell port using free/operational for testable interpreters.

AI-written summary · about

  1. 0:00Introduction
  2. 3:29Intrinsic Side Effects
  3. 5:44Testable Side Effects
  4. 8:46Do decorator
  5. 15:52Test API
  6. 19:42Twisted Library
  7. 22:35Abstracting Over Effects
  8. 26:40Free Monads
  9. 32:40Conclusion
  10. 33:00Questions
~/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.