ORACLENERD twitter/oraclenerd view chet justice's profile on LinkedIn feed oraclenerd t-shirts Unemployment Clock:

  Code Comment WTF? Part 209
Found this in a snippet today:
-- ********************************
-- End of Package Body

END package_pkg ;
/
Seriously? Was that necessary? Could I possibly be under the illusion that it is not the end of the package?

Stop it.

Now.

Labels: , , ,

 
Comments:
Without the comment, one might have thought that was the end of the package spec - the comment saves all the work of scrolling up to see what one is looking at :)
 
Here's one I saw not that long ago.

--get wonum, changedate, description --from workorder
cursor getWorkorder is
select wonum, changedate, description from workorder
 
-- BEGIN comment

/* I think you are missing the point
* because you think that anything
* less than commenting everything
* that could be commented upon is
* simply not going to cut on my
* development team.
*/

-- END comment
 
Could be worse...
you could have comments like

/*do some stuff*/
 
Comment WTFs are fun. I used to leave comments like this in my own code:

# Someone is going to hate me for this later.
# That someone is likely to be me.
 
I think TOAD or something generates those stupid little comments...
 
Post a Comment

Subscribe to Post Comments [Atom]



Links to this post:

Create a Link



<<Home


Guest Authors

How To

Popular

Previous Posts

Code Projects

Archives
August 2007 / September 2007 / October 2007 / November 2007 / December 2007 / January 2008 / February 2008 / March 2008 / April 2008 / May 2008 / June 2008 / July 2008 / August 2008 / September 2008 / October 2008 / November 2008 / December 2008 / January 2009 / February 2009 / March 2009 / April 2009 / May 2009 / June 2009 / July 2009 / August 2009 / September 2009 / October 2009 / November 2009 / December 2009 / January 2010 / February 2010 / March 2010 / April 2010 / May 2010 / June 2010 / July 2010 /


Aggregated by OraNA