Comments usually are not maintained and sooner or later become confusing rather than helpful.
Recently, I have experienced another proof that comments are evil. I needed to examine usages of an identifier (web control name), that could be used both in C# code and in ASPX markup. Thus I needed to use "Find in files", i.e. text searching. There were found 51 occurrences, of which only 4 were not commented out. 47 occurrences were just slowing me down.
I wish there was an option "skip comments" in "Find in files" dialog box.
I wish people preferred deleting stuff to commenting it out.
Monday, April 19, 2010
Why comments are evil
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment