News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by BurningFrog on Friday November 19, 2021 @09:05AM (#29277208)
If you do TDD, you catch bugs before the code is even written.

I don't write a million tests. There are much better strategies for testing.

Simple tests that just executes the code will catch the vast majority of type mistakes.

Re:Where is Ruby Headed in 2021? by whakim on Friday November 19, 2021 @12:57PM (#29280166)
If you're just testing pieces of code in isolation, then you're either writing lots of tests or making assumptions about the kinds of input that your function could reasonably receive or return. If you're testing end-to-end, you're either writing lots of (much more expensive) tests or you're missing corner cases. I don't think that's problematic per se. Testing is just a bit of a mismatch for the problems that type systems solve.