3 ms·
Sounds like you don’t write tests
by craigmcnamara 3y ago
Sounds like you don’t write tests
- Gigachad 3y agoWe have 20,000 rspec tests. They do a huge amount. But every few months, something slips through. Especially when the change relates to 3rd party gems. Having to write a billion unit tests to replace the type checker is just abysmal.
- gregors 3y agoIf you're writing tests that test for that I think you've missed the point entirely of testing. I hope you don't think the typechecker works for logic?
- vinceguidry 3y agoSeriously, just introduce type contracts or a full static type system. Ruby has both.
- dham 3y agoYea devs just don't understand that Ruby is strongly typed. In fact, it's the most strongly typed language out there besides Scala. It's just not statically typed.
- Gigachad 3y agoThat does nothing for the fact that gem authors regularly change things without warning and you can’t tell until the code is run. Something a type checker trivially solves for you.
- vinceguidry 3y agoShould be caught easily with regular unit/integration tests. And again, ruby has static type system, you just have to use it.