Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the video titled "Sorbet: Practical Gradual Type Checking For Ruby," Getty Ritter discusses the development and benefits of Sorbet, a type checker for Ruby used at Stripe, presented at the Paris.rb Conf 2020. The main focus is on addressing developer productivity challenges faced by engineers at Stripe, particularly those writing in Ruby, which is the primary language for product development there. Getty highlights three critical pain points: - **Slow Feedback**: It took too long for developers to receive feedback on code changes, sometimes requiring five to twenty minutes for Continuous Integration (CI) tests to run. - **Understanding Unfamiliar Code**: With millions of lines of code, grasping the context and functionality of unfamiliar snippets proved difficult for developers. - **Breaking Code Easily**: The risk of inadvertently breaking existing functionality when making changes was a constant challenge, especially in a large codebase. To address these issues, Stripe chose to implement a type checker, which led to the creation of Sorbet. The project began in October 2017, with the first type code integrated by February 2018. Initially rolled out quietly to avoid disruption, Sorbet became a mandatory part of the CI system by June 2018. Significant milestones in Sorbet's development included: - **Open-Sourcing**: In June 2019, Sorbet was open-sourced after being tested in a closed beta with major companies. - **Real-Time Feedback**: Sorbet supports immediate feedback within milliseconds compared to the lengthy CI processes. - **Enhanced Understanding**: Through features like type signatures and auto-completion, Sorbet helps developers understand unfamiliar code more rapidly and accurately. Getty demonstrates Sorbet’s capabilities by showing how it highlights type mismatches and facilitates smoother code refactoring. The feedback from users has been overwhelmingly positive, with many reporting increased productivity. Looking ahead, the future development of Sorbet aims to improve speed and integrate with Ruby 3's standard library. The goal is to reduce runtime overhead while maintaining the benefits of type checking in both new and legacy code. Users can access Sorbet at sorbet.run to explore its functionality. In conclusion, Sorbet represents a significant advancement in improving developer productivity for Ruby programmers at Stripe and beyond, providing tools to manage complex codebases effectively through gradual type checking.
Suggest modifications
Cancel