Listen "Custom codegen for SDKs"
Episode Synopsis
In this episode of Build and Learn, we discuss code generation (codegen) and how Stripe uses it to generate SDKs for its APIs automatically. We talk about how a declarative shape of an API (such as Open API spec or GraphQL schema) can be fed into a tool to generate an SDK in a specific programming language. This process helps ensure that the SDKs are always in sync with the API and that any changes to the API are automatically reflected in the SDKs. Most SDKs today are still hand-written, but automatic generation is becoming more popular. We'll touch on the tradeoff between readable code and automatically generated code, which can be quite long and complex. You'll also hear how the Ruby clients for Orbit were likely written by hand and may not be up-to-date.Resources:Richard Marmorstein's Strangeloop talk about codegen: https://www.youtube.com/watch?v=mgRreyw-NlgCJ's RubyConf 2022 talk about codegen: https://www.youtube.com/watch?v=sm0fgIqfsO8Stainless API company: https://stainlessapi.com/Open API Spec: https://swagger.io/specification/ Stripe API Spec: https://github.com/stripe/openapiSwagger codegen: https://swagger.io/tools/swagger-codegen/ Orbit Ruby Activities gem: https://github.com/orbit-love/ruby-orbit-activities
More episodes of the podcast Build and Learn
Travel Tech/Gear and Learning Game Dev
30/12/2024
Wordpress Drama and Discord Activities
25/11/2024
To AI Assist or not to AI Assist?
11/11/2024
Personal Knowledge Management (Second Brain)
28/10/2024
Rails 20th Anniversary, Writing Culture
23/09/2024
DevRelCon, Red Eyes, and Enums
09/09/2024
Two Years of Build & Learn
27/08/2024
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.