2 ms·
A comment is a nice addition, but the very least is to ensure that your test suite properly covers cases where changing one and not the other will introduce a p
by randomdata 2y ago
A comment is a nice addition, but the very least is to ensure that your test suite properly covers cases where changing one and not the other will introduce a problem. This not only ensures that both are changed, but that both are changed in the way they need to be. A comment alone may prompt you to change both (if you ever read it - I bet a lot of developers don't), but you may not notice when you fail to change them in the same way, which is no better than not changing one.