令人笑喷的56个代码注释,你写过多少?
点击上方“码农突围”,马上关注
这里是码农充电第一站,回复“666”,获取一份专属大礼包
真爱,请设置“星标”或点个“在看
程序员的幽默(ID:humor1024)整理
老衲不请自来,
给大家献上一波神注释
供施主们娱乐娱乐
/*
* Dear Maintainer
*
* Once you are done trying to ‘optimize’ this routine,
* and you have realized what a terrible mistake that was,
* please increment the following counter as a warning
* to the next guy.
*
* total_hours_wasted_here = 73
*
up =
newException(
"Something is really wrong.");
throw up;
//ha ha When I wrote
this, only God
and I understood what I was doing
// Now, God only knows
// Magic.
Donot touch.
1;
# returns 1 (
Exception e) {
//who cares?}
/**
* Always returns true.
*/
public boolean isAvailable(){
returnfalse;
}
/*
* You may think you know what the following code does.
* But you dont. Trust me.
* Fiddle with it, and youll spend many a sleepless
* night cursing the moment you thought youd be clever
* enough to "optimize" the code below.
* Now close this file and go play with something else.
*/
{
}
finally {
// should never happen}
TEN=
10;
// As if the value of 10 will fluctuate....BatchSize = 300; //Madness? THIS IS SPARTA!
If
this code works, it was written
by Paul DiLascia.
// If
not, I don
't know who wrote it
Logger logger = Logger.getLogger();
Comment
this later
Remove
thisif you wanna be fired
}
catch(
Exception ex){
// Houston, we have a problem}
result = number /
0.00000000000001.
{
Return
4;
// chosen by fair dice roll.// guaranteed to be random.}
#TODO: Figure
out what I’m doing here
and comment accordingly.
ago;
/* in a galaxy far far away */ john;
// silver age;
= first; /* Biblical reference */
{
}
catch (SQLException ex) {
// Basically, without saying too much, you're screwed. Royally and totally.}
catch(
Exception ex)
{
//If you thought you were screwed before, boy have I news for you!!!}
time;
/* know C */ Abandon all hope ye who enter beyond
this point
(Ex
asException) {
// oh crap, we should do something.}
TODO make
this work
'll never reach it
/*
** The author disclaims copyright to this source code.
** In place of a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。