Welcome to another issue of the Newsletter!
Even though static typing is a great topic—and still quite underrated in the Ruby world—there isn't always enough content to cover every single month. So, in this issue, I’d like to experiment a bit with how the content is presented.
Instead of just listing links, I’ve put together a few short notes about what happened over the past month. I hope you like this format!
I’d really appreciate any feedback that could help improve the newsletter. Feel free to share your thoughts using this form.
You can find all the previous issues of the newsletter in my archive.
Cheers,
Just a few days ago, videos from the recent RubyKaigi conference were published. Several talks focus on static typing, including some key highlights from Matz in the keynote video. Don’t miss it—it’s 100% worth your time.
Andrey Eremin shared an example of a very basic Steepfile
that can be used in a Rails app. It’s a great starting point if you want to use static typing with RBS in your Rails project, whether it's new or existing.
Literal—an interesting gem that acts as both a type checker and a collection of additional types—was updated to version 1.8.0. It takes a somewhat similar approach to dry-types
, and the new release brings improved tooling support, especially around LSP integration.
RBS, the core of Ruby's official static typing system, was updated to version 3.9.4, including some minor fixes.
Parlour, a type signature generator, merger, and parser for Sorbet, Ruby 3, and Steep, was updated to version 9.1.1 with some YARD-related fixes.
rbs-trace, a tool that automatically collects argument and return types and saves them as RBS declarations (in files or inline comments), was updated to version 0.6.0. The update adds support for inline comments using colon-prefixed RBS syntax.
The VSCode extension vscode-rbs-snippets
, which provides handy snippets for documenting your Ruby code with RBS, was updated to versions 1.2.0 and 1.2.1. These updates introduced a command to convert Sorbet assertions to inline RBS comments and added new snippets for type assertions and variable type definitions.
If you’re not using VSCode but prefer another IDE like Zed, you’ll be glad to hear that the zed-sorbet
extension was updated to version 0.1.1, improving stability.
Last but not least, Sorbet, the type checker developed by Stripe, was also updated. The new release adds better support for RBS inline comments. You can find details about what is and isn’t supported in their official documentation.
Your essential Static Typing toolset
rbs
official Ruby Signature solution from the Ruby team
repo
rbs-inline
extension to rbs lets you write signatures in line with your code
repo
steep
type checker for the Ruby signatures
repo
sorbet
type signature and type checking solution designed by Stripe
repo
ruby-lsp
essential toolset and extension, which helps with Ruby development in the VS Code
repo
steep VS Code extension
steep integration with your IDE
repo
rbs syntax VS Code extension
ease the work with RBS signature files
repo
|
“Let's do TDD - type-driven development”
PROMOTION
Start writing robust Ruby software with static typing!
My RBS course equips you with essential knowledge you can apply to any Ruby-based software.
|