/*** * For the brave souls who get this far: You are the chosen ones, * the valiant knights of programming who toil away, without rest, * fixing our most awful code. To you, true saviors, kings of men, * I say this: never gonna give you up, never gonna let you down, * never gonna run around and desert you. Never gonna make you cry, * never gonna say goodbye. Never gonna tell a lie and hurt you. *//*** * 致终于来到这里的勇敢的人: * 你是被上帝选中的人,是英勇的、不敌辛苦的、不眠不休的来修改我们这最棘手的代码的编程骑士。 * 你,我们的救世主,人中之龙,我要对你说:永远不要放弃,永远不要对自己失望,永远不要逃走,辜负了自己, * 永远不要哭啼,永远不要说再见,永远不要说谎来伤害自己。 */
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Java
long long ago; /* in a galaxy far far away */// 很久很久以前 在一个遥远的银河中(出自星球大战)
/////////////////////////////////////// this is a well commented line
1
Java
// no comments for you// it was hard to write// so it should be hard to read// 难写的代码,肯定很难读。因此,我没有注释留给你。
1 2 3 4
出自于贝尔实验室的 Unix 系统第六发行版,并在《Lions' Commentary on UNIX 6th Edition, with Source Code》中标出:
Java
/* You are not expected to understand this *//* 我们并不指望你能看懂这段话 */
1 2
SQLite:
Java
/*** 2004 April 6**** 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.***************************************************************************** This file implements an external (disk-based) database using BTrees.** See the header comment on "btreeInt.h" for additional information.** Including a description of file format and an overview of operation.*/
一些有趣的代码注释
在网上冲浪的时候看到了一些很好玩的注释,分享一波~
用处:好玩,例如放到 SpringBoot 的 banner 里,输出到浏览器控制台里...
佛祖保佑
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
神兽护体
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
耶稣
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
龙!
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
攻城狮
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
甩葱少女
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
顶(觉得不错,顶一个)
2
3
4
5
6
7
8
9
10
11
12
13
14
15
滑稽
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
狗头
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
啪!
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
作诗一首
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
骷髅头
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
其他
2
3
4
5
6
7
8
9
10
11
12
13
14
2
2
3
4
5
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2
3
4
出自于贝尔实验室的 Unix 系统第六发行版,并在《Lions' Commentary on UNIX 6th Edition, with Source Code》中标出:
2
SQLite:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
自己制作
如果你想自己将图片或文本转为 ASCII,也有很多种工具。
在线网站:
软件/插件:
参考