DEV Community

Discussion on: Sorbet: A Type Checker for Ruby

Collapse
 
ben profile image
Ben Halpern

So back in the old thread I kind of said “yeah, let’s go with typescript” but we haven’t had a ton of hard willpower to actually do much about it.

I think getting typed into the backend could definitely be a factor to help embrace types uniformly throughout. In the long run it seems like it could only help our overall code quality.

I’ll definitely be following this, thinking a lot about it, and be open to folks suggesting this as a path forward.

Collapse
 
6temes profile image
Daniel • Edited

it could only help our overall code quality

I think that it is often a mistake to associate code quality with tools. Code quality depends on the developers' quality. I have seen many teams racing to implement the next shiny technology in the hope that it will solve their problems when their main problem is the way they code.

Bad code with types is as bad (or worse) than a bad code without types.

But, yes. Types are convenient, and I hope that there is a good way to introduce them to Ruby, without compromising the natural expressiveness of the language.

Collapse
 
ben profile image
Ben Halpern

I agree, which is why we haven’t rushed to adopt Typescript or other things mentioned here. But I do think it’s the kind of thing that definitely could improve code quality. I’m not itching to be super early adopters though either.