Welcome to another issue of the Newsletter!
You can find all the previous issues of the newsletter in my archive.
I’d really appreciate any feedback that could help improve the newsletter. Feel free to share your thoughts using this form.
Cheers,
Summer is here, and while many are off on vacation, the static typing world in Ruby hasn't completely gone quiet. Here are a few notable updates from the past month:
🔧 New Tool: dry_struct_rbs
A new gem, dry_struct_rbs
, was released. It automatically generates RBS type signatures from your dry-struct
classes — a helpful addition if you use dry-rb
and want to keep your type definitions in sync.
🔄 Parlour Update
Parlour
, a tool for generating and manipulating Sorbet RBI files via Ruby code, has received a fresh update. It remains one of the best utilities for Sorbet users who want to programmatically maintain RBI files.
🧩 New VS Code Extension: Sorbetto
vscode-sorbetto
is a brand-new Visual Studio Code extension for Sorbet. It adds syntax highlighting, inline error display, and other Sorbet-related goodies directly in your editor. A must-try if you're using Sorbet and VS Code.
📚 Ruby vs. TypeScript Typing Philosophies
Hayato Ishida shared slides from his talk comparing static typing in TypeScript and Ruby: Philosophy of Static Typing: Ruby vs TypeScript. It’s a great primer on type checking in Ruby and worth a look if you're new to this area.
☕ JRuby + RBS: Getting Closer
Charles Nutter tweeted about a major milestone for the JRuby community: The last known obstacle to RBS support has been addressed. Check out the pull request that brings us one step closer to using static typing in JRuby.
🤖 RBS + AI for Productivity
ComponentSource published an article exploring how AI-assisted tools can improve productivity when writing RBS signatures. The piece provides insight into what’s already possible — and what might be coming soon.
🕵️♂️ Type-Safe RuboCop Cops
Thanks to this pull request, you can now write custom RuboCop cops and ensure they're type-safe via the gem RBS collection. There's a similar addition for GraphQL in this PR as well.
📖 Missed Article: Sorbet + RBS Inline Comments
Somehow, I missed this April article, despite covering the topic earlier. It dives into how Shopify added support for inline RBS comments in Sorbet. It may seem like a minor change, but it brings real power to developers exploring gradual typing. I’d also love to see more data on how teams perceive and adopt type annotations — the article hints at some interesting trends.
🛠 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.
|