~/talk

Creating Quality Sample Code

Talkat Write the Docs Portland 2020 · 2020-08-09..08-11· [developer-experience]
slides:none on file

Creates GitHub-hosted samples for Twitter Labs with a focus on short, modular, runnable examples that actually work and get maintained. Uses a Postman collection, an open API specification, Python (sometimes run from R via reticulate), and small helpers like Twilio; applies the black autoformatter and runs peer review and a bug bash. Cuts examples from ~120 to ~35 lines, splits 60–70 line demos into <45, and fixes breakage as endpoints change.

AI-written summary · about

  1. 0:00Start
  2. 1:36What Is Sample Code
  3. 3:01Twitter Sample Code
  4. 3:20Code Related Resources
  5. 5:28Readability
  6. 6:03Code Should Be Commented
  7. 6:58Readme
  8. 8:22Can I Build on Top of It
  9. 9:55How Others Perceive Your Code Samples
  10. 10:49Code Conventions
  11. 13:12Bug Bash
  12. 13:52What Exactly Does Good Sample Code Look like
  13. 14:45Create the Url
  14. 19:02Peer Review
  15. 22:49Accessibility
  16. 25:17Documentation Feedback
~/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.