/*
* 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
*
并且您已经意识到这是一个多么可怕的错误,
请增加以下计数器的个数用来对后来人进行警告
这里总共浪费的时间= 73
Exception up = new Exception("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
3.
// sometimes I believe compiler ignores all my comments
4.
// I dedicate all this code, all my work, to my wife, Darlene,
// who will have to support me and our three children and
// the dog once it gets released into the public.
5.
// drunk, fix later
6.
// Magic. Do not touch.
7.
// I'm sorry.
8.
return 1; # returns 1
9.
Catch (Exception e) {
//who cares?
}
10.
/**
* Always returns true.
*/
public boolean isAvailable() {
return false;
}
11.
/*
* 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.
*/
一旦你调试了,你绝对会后悔装聪明去尝试优化这段代码。
最好的方式是关闭文件,
去玩点儿你喜欢的东西吧!
12.
try {
} finally { // should never happen
}
13.
const int TEN=10; // As if the value of 10 will fluctuate...
14.
// This code sucks, you know it and I know it.
// Move on and call me an idiot later.
15.
// If this comment is removed the program will blow up
16.
// I am not responsible of this code.
// They made me write it, against my will.
17.
/* Please work */
18.
// no comments for you
// it was hard to write
// so it should be hard to read
所以它应该很难阅读
options.BatchSize = 300; //Madness? THIS IS SPARTA!
20.
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it
21.
// Peter wrote this, nobody knows what it does, don't change it!
22.
/** Logger */
private Logger logger = Logger.getLogger();
23.
// I have to find a better job
24.
// Real programmers don’t comment their code.
// If it was hard to write,
// it should be hard to understand.
应该是难以理解
25.
// This is black magic
// from
// *Some stackoverlow link
// Don’t play with magic, it can BITE.
26.
// For the sins I am about to commit, may James Gosling forgive me
27.
// Comment this later
28.
// Remove this if you wanna be fired
29.
}catch(Exception ex){
// Houston, we have a problem
}
30.
// I can’t divide with zero, so I have to divide with something very similar
result = number / 0.00000000000001.
31.
int getRandomNumber()
{
Return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
32.
#TODO: Figure out what I’m doing here and comment accordingly.
33.
// If this code is still being used when it stops working, then
// you have my permission to shoot me. Oh, you won't be able
// to - I'll be dead...
我死了……
34.
// If you are reading this, that means you have been put in charge of my previous project.
// I am sorry, so sorry for you. Godspeed.
35.
// I wrote this while drunk, I don’t know what it does,
// but if you remove it the program breaks.
// This code worked before, but my cat decided to take a
// trip across my keyboard...
37.
long long ago; /* in a galaxy far far away */
38.
long john; // silver
39.
#define TRUE FALSE // Happy debugging suckers
40.
// Dear future me. Please forgive me.
// I can't even begin to express how sorry I am.
41.
// private instance variable for storing age
public static int age;
42.
// I am not sure why this works but it fixes the problem.
43.
last = first; /* Biblical reference */
44.
try {
} 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!!!
}
45.
// John! If you'll svn remove this once more,
// I'll shut you, for God's sake!
// That piece of code is not "something strange"!
// That is THE AUTH VALIDATION.
这段代码不是什么“奇怪的东西”
那就是身份验证
46.
long time; /* know C */
47.
// Abandon all hope ye who enter beyond this point
48.
/* Ah ah ah! You'll never understand why this one works. */
49.
catch (Ex as Exception) {
// oh crap, we should do something.
}
50.
// TODO make this work
51.
// If you're reading this, then my program is probably a success
52.
// set break point here - you'll never reach it
53.
/*
** 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.
*/
愿你行善不作恶。
愿你宽恕自己,宽恕他人
愿你自由分享,永远不要超过付出
54.
// I'm not sure what I did
55.
// This is crap code but it's 3 a.m. and I need to get this working.