Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree with this take. I work at Shopify using Sorbet and Rails. On a monolithic code base it can be very helpful to know what type is going to be returned.

On a smaller code base I may not bother with it for the reasons the original commenter mentioned.



Does it still feel like Ruby though or is it a new beast? I mean Typescript doesn't really look like Javascript at all and your whole mindset changes when you use it. So is Shopify now typing the whole monolith ?


Yep, Shopify another huge user of Sorbet. They’ve been using it since before it was open sourced, and have spoken about their experiences:

https://youtu.be/v9oYeSZGkUw

The numbers and testimonials in that presentation are two years old at this point but I can only think that means they’ve improved since then.


IMO it depends on what part of the ruby feel you most enjoy. Sorbet makes it harder to work with the runtime-magic parts of Ruby (and in some cases we rely on tooling-generated code instead of runtime dynamic stuff), but it doesn’t affect the code you’d write within methods all that much.


If you don't like TypeScript, you probably won't like Sorbet, but Sorbet does not extend ruby's syntax at all.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: