Artwork

Content provided by CJ Avilla, Colin Loretz, CJ Avilla, and Colin Loretz. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by CJ Avilla, Colin Loretz, CJ Avilla, and Colin Loretz or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Custom codegen for SDKs

41:31
 
Share
 

Manage episode 355883056 series 3379394
Content provided by CJ Avilla, Colin Loretz, CJ Avilla, and Colin Loretz. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by CJ Avilla, Colin Loretz, CJ Avilla, and Colin Loretz or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

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:

  continue reading

58 episodes

Artwork
iconShare
 
Manage episode 355883056 series 3379394
Content provided by CJ Avilla, Colin Loretz, CJ Avilla, and Colin Loretz. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by CJ Avilla, Colin Loretz, CJ Avilla, and Colin Loretz or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

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:

  continue reading

58 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide

Copyright 2025 | Privacy Policy | Terms of Service | | Copyright
Listen to this show while you explore
Play