3 ms·
I’ve got a long experience with Ruby which I believe is quite similar, but after about 5 years, an untyped language just falls apart. Updating anything is peril
by Gigachad 4y ago
I’ve got a long experience with Ruby which I believe is quite similar, but after about 5 years, an untyped language just falls apart. Updating anything is perilous because libraries will change stuff all the time that violates the types and it won’t be mentioned in the changelogs, your 20,000 unit tests will also constantly miss stuff because you didn’t reimplement a type checker inside rspec. It’s a disaster. Typescript has saved our front end but I don’t see any hope for Rails.
- jes5199 4y agotyped Python is becoming more common, and it helps. It’s not as mature as Typescript, but it’s getting better
- cogman10 4y agoIt definitely goes a long way towards making things more workable/understandable.
- culi 4y agoHave you tried Sorbet? The typing story in Python and Ruby are both pretty bad, but they do exist...
- Gigachad 4y agoWe investigated but the general vibe is that it just isn’t there yet, and it isn’t even moving in the direction to get there. It really needs support from the Rails project, and the rails leadership had indicated it isn’t going to happen. If you have a pure ruby project and use it from day one, it probably works. But if you are starting a brand new project, just save yourself the pain and use TS.