Sorbet: Bringing Static Types to Millions of Lines of Stripe's Ruby
Why Stripe built its own type checker, Sorbet, instead of rewriting its large Ruby codebase, and how gradual typing let adoption happen incrementally.
Tag
6 articles · 24 min of reading
Why Stripe built its own type checker, Sorbet, instead of rewriting its large Ruby codebase, and how gradual typing let adoption happen incrementally.
How Shopify keeps a single large Rails monolith deployable dozens of times daily using merge queues, canaries, and fast automated rollback.
How Shopify runs enormous volumes of background jobs safely, treating idempotency and graceful interruption as first-class design constraints.
How GitHub built the Scientist library to run new and old code paths side by side in production before ever trusting the new one.
Shopify funded a just-in-time compiler for Ruby instead of rewriting its monolith, turning YJIT into a core piece of commerce infrastructure.
How Shopify layered gradual, static type checking onto a massive dynamically-typed Rails codebase using Sorbet without freezing feature work.