having spent a day experimenting with it, I don't think sorbet is ready for production. I think it has potential but there are a lot of open pitfalls that would need to be ironed out before I could recommend it
-
Show this thread
-
I was interested in it because retrofitting type systems onto untyped languages is an interesting problem, but compared to e.g. typescript it has a long way to go in terms of correctness
3 replies 0 retweets 3 likesShow this thread -
I am interested in stories on its ergonomics and how it helps people -- my only info right now is I've run it on a 6,000 line gem I wrote last year, it generated a ton of errors but did not identify any bugs
1 reply 0 retweets 1 likeShow this thread -
in contrast to when rust yells at me, it is almost always identifying an actual bug and so it feels like it's helping
1 reply 0 retweets 5 likesShow this thread -
to appease sorbet I've moved a bunch of code around, but it's purely refactoring, not changing behaviour, and I have not found any behaviour that needs fixing as a result of running it
2 replies 0 retweets 2 likesShow this thread -
that, by itself, is a really interesting ergonomic result to me: rust is extremely restrictive, but when it won't compile, I feel like I understand why ruby is incredibly forgiving, so I'm sure my codebase contains bugs, but everything sorbet is telling me about is noise
1 reply 1 retweet 6 likesShow this thread -
saying that, I'm only getting my codebase from `false` to `true` type checking, not `strict` or `strong` but the things it's complaining about at `true` are artificially restrictive already
2 replies 0 retweets 1 likeShow this thread -
especially since often it recommends to fix the "module does not have method f" error by including Kernel, which in my case breaks my program
1 reply 0 retweets 1 likeShow this thread -
but also it's just not necessary -- you cannot call a method from a module unless it's been included into a class, at which point Kernel is in scope
2 replies 0 retweets 2 likesShow this thread -
Replying to @mountain_ghosts
explicitly calling Kernel.<whatever> is the recommendation
3 replies 0 retweets 0 likes
Not everyone is writing RSpec :P
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.