nadiyar
56 following, 137 followers
@nadiyar @ghost_letters But how do you know if the main logic is correct? This is why we have tests. With tests, we can be sure that our code works. The tests also allow us to refactor our code, to tidy it up, without fear of breaking it.
@nadiyar @ghost_letters Why, what’s wrong with it?
@nadiyar @ghost_letters What’s wrong with that?
@nadiyar @ghost_letters Ah, I see. I disagree. Our job is mostly to change code. And it’s easy and quick to change code that has fast automated tests.
If you don’t have those tests, it might be fast to change the code, but it’s slow to find out if your change is good. And bugs will be reported later, and be hard to fix.
Investing in good tests (especially through TDD) helps you to go faster.