News for hackers. Stuff that matters.
Re:Sorbet and 100% cov makes Ruby refactoring possible by bxjx on Monday April 25, 2022 @08:14PM (#31162518)
Satisfying static types AND 100% code cov is a significant burden.

If you're intrigued by this approach, or perhaps by a similar approach with typescript, I highly recommend checking out a strictly strong typed language at some point. I've been coding in Elm and a little in Haskell, and I find that the type checking is so thorough and exhaustive that I only need to write very few tests to get strong guarantees. This was a very pleasant change from Rails where you are encouraged to aim for 100% code cov, and as such, would spend well over 40% of my development writing tests.

Re:Sorbet and 100% cov makes Ruby refactoring possible by devoutsalsa on Tuesday April 26, 2022 @03:43AM (#31164995)
It’s worth noting that just because it compiles, that doesn’t mean it does what you want.
Re:Sorbet and 100% cov makes Ruby refactoring possible by runeks on Tuesday April 26, 2022 @04:12AM (#31165140)
True. Nor does 100% code coverage mean it does what you want.