DEV Community

A Scoop of Sorbet - First Impressions

Brandon Weaver on June 21, 2019

Stripe just released a new gem for static typing in Ruby called Sorbet after a long period of teasing at it publicly at conferences like Ruby Kai...
Collapse
 
bijanrahnema profile image
Bijan

I'm hesitant to write signatures definitions but like typescript definitions sorbet has the potential to offer better code completion for Gems that have annotations available.
I'm not so sure how to integrate it into VSCode, Sublime, RubyMine or Atom though. Invoking the commandline is okayish but I'd prefer better integration. Are there projects in the works to integrate into IDE(ditors)?

Collapse
 
alephnaught2tog profile image
Max Cerrina

We're using it on my project at work right now, so I've been using it quite a lot actually. I spent the weekend playing with it/getting familiar and mostly enjoyed it, and enjoy it 100000x more now that I found the beta VSCode plugin for it that does use the language server protocol, and thus you get refactorings, etc. (Bonus, it's about 10000000000000000x faster than the other Ruby plugin I was using.)

Collapse
 
shevegen profile image
markus heiler

Good summary. I don't get as to why we would need any of this but you are just the messenger, not the one who wrote it. ;)

Collapse
 
victorhazbun profile image
Info Comment hidden by post author - thread only accessible via permalink
Victor Hazbun

This is not how Ruby was supposed to be.

Some comments have been hidden by the post's author - find out more