Home > C# > If you have nothing good to say… say nothing!

If you have nothing good to say… say nothing!

VN:R_U [1.6.3_896]
Rating: 4.5/5 (2 votes cast)

Good code comments are great.  Useless ones are the root of all evil!  Stop with the useless and redundant comments.

private void CreateTheProcessingThread()
{
	// Create the processing thread
	new Thread(ProcessingThread).Start();
}	// End of method CreateTheProcessingThread()

Really?!  I couldn’t really tell what was going on there… all of those ridiculous comments were clouding what was really going on.  Making the comment the actual name of the method and adding spaces is just asinine!

And do you really need an entire method to make one call?  It’s okay if you do because you might eventually change the implementation of that method… but please just do it like this instead:

private void CreateTheProcessingThread()
{
	new Thread(ProcessingThread).Start();
}
VN:R_U [1.6.3_896]
Rating: 4.5/5 (2 votes cast)

Categories: C# Tags:
  1. November 6th, 2009 at 11:28 | #1

    Pat would be very upset about this.

    VN:F [1.6.3_896]
    Rating: 0.0/5 (0 votes cast)
  1. No trackbacks yet.