~/talk

Using Grok to Walk Like a Duck

Talkat PyCon US 2008 · on Sunday, 2008-03-16· [web-platform, python]
links:none on file
slides:none on file

Adapters replace fragile subclassing, mixins and monkey‑patching by wrapping objects without changing them; Grok/zope.component implements this with three concrete steps: define an interface, register an adapter, request adaptation by calling the interface like a function. Example adapts email.message objects into tree nodes so unit tests use cheap mock messages, avoids factory and name‑collision problems, and runs in real apps; autoconfiguration can register adapters from conventions and the supplied example code works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Static vs dynamic typing
  3. 2:26Duck typing and email
  4. 4:13Subclassing flaws
  5. 8:27Mixins limitations
  6. 10:38Monkey patching drawbacks
  7. 13:10Adapters pattern
  8. 16:55Scattered adaptation logic
  9. 18:22Interfaces and Zope Component Architecture
  10. 21:19Adapter tips
  11. 24:52Grok auto-configuration
  12. 25:33Why Grok powerful
  13. 26:39Dynamic adaptation
  14. 27:47Adapters as two-story attribute names
  15. 28:08Future of adapters
  16. 29:12Q&A
~/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.