~/talk

API Design is Hard

Talkat Swiss Python Summit 2016 · on Friday, 2016-02-05· [developer-experience, python]
links:none on file
slides:none on file

Built Jedi autocompletion (≈2,000 stars on GitHub) as a case study, showing specific mistakes and fixes: prefer simple return types over custom objects, avoid exposing internals by using use underscores for non-public and Jedi autocompletion (≈2,000 stars) as an example of a modular parser you can rip out, favor functions over properties when you might add parameters later, emit deprecation warnings via warnings.warn and use semantic versioning, expect maintenance (roughly 4–5 hours/week) and poor refactoring tool support.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:24Why API design matters
  3. 6:41Bad API examples
  4. 9:16Consistency in API design
  5. 13:40Brainstorming your API
  6. 17:01Performance vs API design
  7. 18:29Conservative API decisions
  8. 20:05Underscore conventions in Python
  9. 23:05Naming conventions and clarity
  10. 25:38Named arguments in Python
  11. 27:25Properties in API design
  12. 29:59API transitions and versioning
  13. 35:23Internal APIs and long-term design
  14. 38:01Conclusion and advice
  15. 39:39Q&A session
~/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.