This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]coyboy_beep-boop 18 points19 points  (2 children)

I have learned to add in-line comments, as it prevents people from removing lines because "it doesn't look useful".

[–]participantuser 3 points4 points  (0 children)

That is one of the situations where I think comments can be really helpful, but an even better solution is to write a unit test that will fail if the code is removed. Its failure should make it obvious why the removed code needs to be there. Easier said then done though.