~/talk

Making Your Code Examples Shine

links:none on file
slides:none on file

Claims that code examples are auto-generated and manually generated using a Go utility generate-code-examples, that Stripe maintains a style guide and per-language templates, and that the API ref renders eight languages for five charge methods producing about forty examples per charge and nearly 300 contextual docs. Runnable examples use RunKit, tests run against stripe-mock, and linters validate syntax. The automation reduces toil but requires overrides and careful syncing to avoid inconsistencies.

AI-written summary · about

  1. 0:00Start
  2. 7:30Research Your Audience
  3. 8:40Establish What You'll Support
  4. 10:36Envision Enhancements
  5. 15:13Treat Your Code Like Your Writing
  6. 17:52Communicate Through Your Code
  7. 19:41Provide Feedback to Your Engineers
  8. 20:32Making Your Code Examples Shine
  9. 21:17Automate Within Reason
  10. 23:31Generate Code Examples Programmatically
  11. 25:20Run and Automate Tests - Testing against your libraries and API
  12. 26:25Avoid Pitfalls
~/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.