Boutique machine generated gems
summary
Stripe automates Ruby gem generation from an OpenAPI spec instead of hand-editing seven SDKs, replacing 30,000‑line files and 2,000 model stubs with a generator that saves hundreds of engineering hours per year. It compares off‑the‑shelf Swagger codegen (messy templates) to a React‑style renderer called prettier poet that prints idiomatic Ruby, multiple languages, validated snippets, changelogs and docs — a working pipeline already driving documentation and releases.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:05Writing SDKs by hand
- 3:52Stripe Ruby SDK evolution
- 6:44Automating SDK generation with Cogen
- 7:26New SDK pipeline requirements
- 8:28Challenges with Swagger codegen
- 13:48Prettier Poet for code generation
- 15:54Live demo of Prettier Poet
- 21:54Multi-language docs snippets
- 26:52Sinatra and Express routes
- 28:37Generated code in Stripe docs
- 30:23Benefits of new tooling
- 31:28Q&A
related talks
30mArtisanal, machine-generated API libraries
39mGradual typing of Ruby at Scale
28mMaking Your Code Examples Shine
31mHow to Make a Gem of a Gem
33mMeet Shopify's Ruby and Rails Infrastructure Team
41mUse Ruby to Generate More Ruby - RubiGen
41mSorbet: A type checker for Ruby 3 you can use today!
38mCrafting Gems
