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

  Code Comment WTF? Part 209
Tuesday, March 9, 2010
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

Register for Kscope 13!

The Sherpa



Guest Authors

How To

Previous Posts

Archives



Aggregated by OraNA OraDBPedia