3 ms·
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. O
by cardy31 5y ago
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.
- joelbluminator 5y agoDoes 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 ?
- rattray 5y agoIf you don't like TypeScript, you probably won't like Sorbet, but Sorbet does not extend ruby's syntax at all.
- jez 5y agoYep, 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 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.
- feifan 5y agoIMO 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.