Stripe

Sorbet: Stripe’s type checker for Ruby

Answers How do you add static types to millions of lines of Ruby?

By 2017 hundreds of Stripe engineers had written millions of lines of Ruby, and changes were getting risky. Stripe built and open sourced Sorbet, a fast type checker for Ruby; it now covers more than 15 million lines…

The problem
Millions of lines of Ruby had become hard for new engineers to learn and risky to change.
What they did
Stripe built and open sourced Sorbet, a fast type checker for Ruby.
The result
Sorbet now checks more than 15 million lines across 150,000 files.

Why read it Adding types to a huge dynamic codebase without stopping the company.

Summarised from the original source by Informa AI. The full story, and every claim in it, belongs to the publisher.

Explore all Curiosity Cards →