Hacker News new | ask | show | jobs
by pqdbr 2042 days ago
I've been using Sorbet for a while integrated in my SublimeText. I have never added a type signature, not even once. I just use it to prevent me from silly mistakes (like changing a variable name somewhere and breaking code downstream). The immediate red underline, which we are used to having in JS with ESLint, is such a great productivity booster.
2 comments

This is a great way to use Sorbet and get its benefits without having to invest 100% into typing. Great example, thanks for sharing.
It is the same with Typescript. The VSCode Typescript plugin gives you type signatures of DOM Related functions that you would otherwise never get.