5 ms·
Unit test that documents the required functionality of code helps a lot. After that, one can refactor the code with all kinds of cleverness.
by kyberias 6y ago
Unit test that documents the required functionality of code helps a lot. After that, one can refactor the code with all kinds of cleverness.
- woutr_be 6y agoI'm not sure if I agree with that, unit tests would help document what code does. But it doesn't help when you're reading through code. It's also important to understand how your code does what your unit tests document.