BlogsStripeCodebase Migration to TypeScript

Codebase Migration to TypeScript

Codebase Migration to TypeScript

2
posts
2022

This feature thread tracks Stripe's efforts to migrate its extensive codebase to TypeScript, aiming to improve developer productivity, code quality, and maintainability. The initial post details a large-scale migration of millions of lines of code, highlighting the technical challenges and strategies involved in such a significant undertaking. This post introduces Sorbet, Stripe's type checker for Ruby, demonstrating a commitment to static typing across different languages to enhance developer productivity and code quality.

2022

Migrating millions of lines of code to TypeScript

5/20/2022

This post details the technical execution of migrating over 3.7 million lines of code to TypeScript with a single pull request. It highlights the scale of the migration and the subsequent integration of hundreds of engineers into writing new TypeScript code, indicating a strategic shift in the company's development practices.

Sorbet: Stripe’s type checker for Ruby

3/28/2022

This post details Stripe's adoption and use of Sorbet, a type checker for Ruby, to improve developer productivity and code quality across its large Ruby codebase. It explains the benefits of static typing in identifying errors early, improving code maintainability, and enabling refactoring. The post highlights how Sorbet integrates into the development workflow and its impact on engineering efficiency.