dejected_warp_core

joined 2 years ago
[–] dejected_warp_core@lemmy.world 6 points 1 day ago (2 children)

Writing the tests first, or at least in tandem with your code, is the only way to fly. It's like publishing a proof along with your code.

it sounds trite: make the tests fit the code. Yes, it's a little more work to accomplish. The key here is that refactors of any scale become trivial to implement when you have unit-test coverage greater than 80%. This lets you extend your code with ease since that usually requires some refactor on some level.