Sunday, November 28, 2004

No comment

If you use Eclipse to generate Java classes, interfaces, methods, etc. it will automatically insert boilerplate comments for you to fill in later. The default boilerplate looks like this:
/*
 * Created on Nov 22, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
Comments like this will show up in Eclipse's TODO view to remind you to fix them. Do you think anyone would just leave the default boilerplate in their code? Let's take a look: Google finds 11,800 instances of this string. The open source code search engine Koders found 1642 instances of the string.

What to make of all of this? Not much except that it's an indication that a lot of developers don't care enough to comment their code.