Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
If you enjoy building projects using TypeScript, you probably wish you could build Ruby projects with a type checker. I've been in that boat! Recently, I stumbled upon Sorbet, a well-maintained type checker for Ruby. In this talk, we'll take a look at how we can use Sorbet. Ali Ilman is a software engineer from Malaysia. He works for Suria Labs as a full-stack developer. He writes Ruby and JavaScript and other than these technologies, he's getting his hands dirty with Docker and Kubernetes. He loves TDD and service objects. In his free time, he tends to have his head buried in a book. Welcome to the #NoRuKo conference. A virtual unconference organized by Stichting Ruby NL. #NoRuKo playlist with all talks and panels: https://www.youtube.com/playlist?list=PL9_A7olkztLlmJIAc567KQgKcMi7-qnjg Recorded 21th of August, 2020. NoRuKo website: https://noruko.org/ Stichting Ruby NL website: https://rubynl.org/
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 this talk at the #NoRuKo conference, Ali Ilman, a software engineer from Malaysia, introduces Sorbet, a type checker for Ruby that offers a gradual approach to type checking, making it accessible for Ruby developers. He emphasizes that Sorbet allows developers to incrementally add types throughout their codebase without needing to rewrite everything at once. The main points discussed in the video include: - **Introduction to Type Checking**: Ali shares his background in software development and his transition from TypeScript to Ruby. He highlights the importance of type checking, especially after gaining experience with TypeScript, which reduced his mental workload during coding. - **Overview of Sorbet**: Sorbet is presented as a well-maintained type checker developed by Stripe, which is compatible with Ruby syntax. Unlike TypeScript, Sorbet enables type checking incrementally, meaning developers can annotate their code at their own pace. - **Integration with Ruby 3’s RBS**: Ali discusses Ruby 3’s introduction of RBS, a type signature language, and how it relates to Sorbet. He explains that the Sorbet team supports both RBS and its own interpretation, RBI, although developers should approach integrating Sorbet into production applications with caution. - **Demo**: A demo illustrates how to set up Sorbet in a Ruby project using the command line tool 'srb'. He walks through the process of adding type annotations and how Sorbet catches specific type errors, reinforcing the necessity of declaring data types correctly to avoid runtime errors. - **Practical Usage and Benefits**: Ali covers how Sorbet can assist with checking method return types, handling nil values, and declaring types for variables. He emphasizes the savings in coding and debugging time that can be achieved through effective type checking. - **Concluding Remarks**: Ali wraps up by encouraging developers to explore Sorbet and stay informed about its community developments. He leaves the audience with the importance of integrating Sorbet into their Ruby projects to enhance reliability and maintainability of code. Overall, the session serves as both an introduction to Sorbet and a guide for Ruby developers looking to implement type checking in their applications, providing valuable insights and practical demonstrations.
Suggest modifications
Cancel