~/talk

The Fun of Reinvention

Talkat PyCon Israel 2017 · 2017-06-11..06-13· [career-development]
slides:none on file

Live-coded a tiny contract framework that actually enforces runtime checks: uses Python 3.6 features like f-strings, ordered dicts, function annotations, signature binding and decorators, descriptors to validate attribute sets, and an __init_subclass__ and metaclass prepare trick with ChainMap to auto-register contracts across modules. The demo runs in a terminal presentation script (iTerm2 inline images) and proves the idea works: annotated functions and classes raise clear assertion errors when given bad inputs, showing how modern Python makes this kind of reinvention practical.

AI-written summary · about

  1. 0:00Introduction
  2. 2:50Python
  3. 7:43Reinventing
  4. 9:55Prototypes
  5. 12:44Dictionaries
  6. 13:56GCD Function
  7. 15:25Annotations
  8. 18:35Inheritance
  9. 26:25Decorator
  10. 30:29Descriptor Protocol
  11. 41:47Dictionary
~/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.