日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯網營銷解決方案
30 多個有內味道且笑死的人代碼注釋

代碼注釋,有些人說它太丑,也有些人說它是標準和良好的做法。在本文中, 列出了一些在編程中遇到的有趣的代碼注釋。

創(chuàng)新互聯堅持“要么做到,要么別承諾”的工作理念,服務領域包括:網站設計、成都網站制作、企業(yè)官網、英文網站、手機端網站、網站推廣等服務,滿足客戶于互聯網時代的武鄉(xiāng)網站設計、移動媒體設計的需求,幫助企業(yè)找到有效的互聯網解決方案。努力成為您成熟可靠的網絡建設合作伙伴!

注釋 1

 
 
 
 
  1. // Weed Effect !  
  2.  
  3. 這是雜草效應的意思?不是很懂,有誰知道,可以留言一下。 

注釋 2

 
 
 
 
  1. /**** 原文 *****/ 
  2. //The following code was written by 
  3. // Unless it doesn't work, then I have no idea who wrote it. 
  4.  
  5. /**** 自譯 *****/ 
  6. // 以下代碼是由編寫的。 
  7. // 除非它不起作用,否則我不知道是誰寫的。 

注釋 3

 
 
 
 
  1. /**** 原文 *****/ 
  2. // Ad Index scheming and plotting - Those with 
  3. // heart conditions are advised to not continue 
  4.  
  5. /**** 自譯 *****/ 
  6. // 廣告索引的設計和繪圖模塊 
  7. // 建議不要深入閱讀,否則容得得心臟病 

注釋 4

 
 
 
 
  1. /**** 原文 *****/ 
  2. // nobody read comments! 
  3.  
  4. /**** 自譯 *****/ 
  5. // 沒人會讀的注釋 

注釋 5

 
 
 
 
  1. /**** 原文 *****/ 
  2. i++; // increment i 
  3.  
  4. /**** 自譯 *****/ 
  5. i++; // 自增 i 

注釋 6

 
 
 
 
  1. /**** 原文 *****/ 
  2. // Magic. Do not touch. 
  3.  
  4.  
  5. /**** 自譯 *****/ 
  6. // 這里已經結界,不要碰. 

注釋 7

 
 
 
 
  1. /**** 原文 *****/ 
  2. // sometimes I believe compiler ignores all my comments 
  3.  
  4. /**** 自譯 *****/ 
  5. // 有時我相信編譯器會忽略我的所有注釋 

注釋 8

 
 
 
 
  1. /**** 原文 *****/ 
  2. // I am not responsible of this code. 
  3. // They made me write it, against my will. 
  4.  
  5. /**** 自譯 *****/ 
  6. // 我對此代碼不承擔任何責任。 
  7. // 是他們強迫我讓我寫的,這已違背了我的意愿。 

注釋 9

 
 
 
 
  1. /**** 原文 *****/ 
  2. //  
  3. // Dear maintainer: 
  4. //  
  5. // Once you are done trying to 'optimize' this routine, 
  6. // and have realized what a terrible mistake that was, 
  7. // please increment the following counter as a warning 
  8. // to the next guy: 
  9. //  
  10. // total_hours_wasted_here = 42 
  11.  
  12. /**** 自譯 *****/ 
  13. // 親愛的程序媛 
  14. //  
  15. // 一旦你嘗試“優(yōu)化”此代碼,并意識到這是一個可怕的錯誤, 
  16. // 請增加以下計數器,以警告下一個人 
  17. //  total_hours_wasted_here = 42 

注釋 10

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. # To understand recursion, see the bottom of this file 
  4. At the bottom of the file 
  5. # To understand recursion, see the top of this file 
  6.  
  7.  
  8. /**** 自譯 *****/ 
  9.  
  10. # 要了解遞歸,請參見此文件的底部 
  11.  
  12. 在文件的底部 
  13.  
  14. # 要了解遞歸,請參見此文件的頂部 

注釋 11

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // I will give you two of my seventy-two virgins if you can fix this. 
  4.  
  5. /**** 自譯 *****/ 
  6. // 如果你能解決這個問題,我就把我七十二個處女中的兩個給你。 

注釋 12

 
 
 
 
  1. /**** 原文 *****/ 
  2. //Dear future me. Please forgive me.  
  3. //I can't even begin to express how sorry I am. 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7. // 你好,未來帥氣的我,請原諒我。 
  8. // 我現在無法表達我的歉意,因為我寫下了這段代碼。 

注釋 13

 
 
 
 
  1. /**** 原文 *****/ 
  2. //private instance variable for storing age 
  3. public static int age; 
  4.  
  5. /**** 自譯 *****/ 
  6. // 用于存儲年齡的私有實例變量 
  7. public static int age; 

注釋 14

 
 
 
 
  1. /**** 原文 *****/ 
  2. const int TEN=10; // s if the value of 10 will fluctuate... 
  3.  
  4.  
  5. /**** 自譯 *****/ 
  6. const int TEN=10; // 10 是會改變的值 

注釋 15

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. /* You are not meant to understand this */ 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. /* 你不應該理解這一點 */ 

注釋 16

 
 
 
 
  1. /**** 原文 *****/ 
  2. /* 
  3. * TODO: Remove this function 
  4.  
  5. function remove($customer_id) 
  6.     { 
  7.         $this->Customer->remove($id); 
  8.     } 
  9.  
  10. */ 
  11.  
  12.  
  13. /**** 自譯 *****/ 
  14. /* 
  15. * TODO: 刪除函數 
  16.  
  17. function remove($customer_id) 
  18.     { 
  19.         $this->Customer->remove($id); 
  20.     } 
  21.  
  22. */ 

注釋 17

 
 
 
 
  1. /**** 原文 *****/ 
  2. //When I wrote this, only God and I understood what I was doing 
  3. //Now, God only knows 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. // 當我寫這段代碼,只有上帝和我知道這是在做什么 
  9. ... 
  10.  
  11. // 現在,只有上帝知道這段代碼在做什么 

注釋 18

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // drunk, fix later 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 喝醉了,待會解決 

注釋 19

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // I'm sorry. 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 我很抱歉 

注釋 20

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // I am not responsible of this code. 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 我對此代碼不承擔任何責任。 

注釋 21

 
 
 
 
  1. /**** 原文 *****/ 
  2. // I have to find a better job 
  3.  
  4. /**** 自譯 *****/ 
  5.  
  6. // 我必須找到更好的工作 

注釋 22

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // Joe is sorry 
  4. A few hundred lines later... 
  5. // Harry is sorry too 
  6.  
  7. /**** 自譯 *****/ 
  8.  
  9. // 老五抱歉了 
  10.  
  11. 寫了幾百行代碼之后... 
  12.  
  13. // 小五對不住了 

注釋 23

 
 
 
 
  1. /**** 原文 *****/ 
  2. # Christmas tree initializer   
  3.     toConnect = []   
  4.     toRead =   [  ]   
  5.     toWrite = [    ]    
  6.     primes = [      ]   
  7.     responses = {}   
  8.     remaining = {} 
  9.      
  10.      
  11. /**** 自譯 *****/ 
  12.  
  13. # 圣誕樹初始化器 
  14.     toConnect = []   
  15.     toRead =   [  ]   
  16.     toWrite = [    ]    
  17.     primes = [      ]   
  18.     responses = {}   
  19.     remaining = {}  

注釋 24

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. Catch (Exception e) { 
  4.  // who cares? 
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. Catch (Exception e) { 
  9.  // 管它呢? 

注釋 25

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // IE7 update. this is still bad code, but IE8 is probably a long way off :) 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. IE7更新,這仍然是錯誤的代碼,看來 IE8 還有很長的路要走:) 

注釋 26

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // If this code works, it was written by Paul DiLascia. If not, I don't know 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 如果這個代碼有效的話,它就是由 前端小智 編寫的。如果出錯了,我也不知道是誰寫的。 

注釋 27

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // This comment is self explanatory. 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 這個注釋不言自明。 

注釋 28

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. int main(void) 
  4. /* Program starts here */ 
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. int main(void) 
  9. /* 程序從這里開始 */ 

注釋 29

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // I am not sure if we need this, but too scared to delete. 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 我不確定我們是否需要這個,但又害怕刪除 

注釋 30

 
 
 
 
  1. /**** 原文 *****/ 
  2. /** 
  3.  * Always returns true. 
  4.  */ 
  5. public boolean isAvailable() { 
  6.     return false; 
  7.  
  8.  
  9. /**** 自譯 *****/ 
  10. /** 
  11.  * 總是返回 true. 
  12.  */ 
  13. public boolean isAvailable() { 
  14.     return false; 

注釋 31

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // Autogenerated, do not edit. All changes will be undone. 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 自動生成,不要編輯。所有的更改都將被撤銷。 

注釋 32

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // hack for ie browser (assuming that ie is a browser) 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7. // 破解ie瀏覽器(假設ie是一個瀏覽器) 

注釋 33

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. /////////////////////////////////////// this is a well commented line 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. /////////////////////////////////////// 這是一個很好的注釋 

注釋 34

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // Mr. Compiler, please do not read this. 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 編譯先生,請不要讀取這個 

注釋 35

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // All bugs added by David S. Miller 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 所有 bug 都是由 老王 添加的 

注釋 36

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. //If you're reading this, then my program is probably a success 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. // 如果你現在在認真詳細的閱讀這段代碼,那么寫的這段代碼應該是沒有問題的。 

注釋 37

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. Catch (Exception e) { 
  4.     //eat it 
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. Catch (Exception e) { 
  9.     // 吃掉它 

注釋 38

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. //todo: never to be implemented 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // todo:永遠不會執(zhí)行 

注釋 39

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // simply copied from another code 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 別問,問我也是從另一個代碼拷貝過來的 

注釋 40

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. //Please comment on your source code 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 拜托啦,請把你寫的代碼注釋一下 

注釋 41

 
 
 
 
  1. /**** 原文 *****/ 
  2. # as you can see: I comment the code! 
  3.  
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. # 如你所見:我注釋了代碼! 

注釋 42

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // if i ever see this again i'm going to start bringing guns to work 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 如果我再看到這個,我會帶槍去工作 

注釋 43

 
 
 
 
  1. def format_ticket_content(text, recursive = true) 
  2.   if text.is_a?(TicketNote) 
  3.     note = text 
  4.     text = note.content 
  5.   else 
  6.     note = nil 
  7.   end 
  8.  
  9.   ## Safety pig has arrived! 
  10.   text = h(text) 
  11.   ##                               _ 
  12.   ##  _._ _..._ .-',     _.._(`)) 
  13.   ## '-. `     '  /-._.-'    ',/ 
  14.   ##    )         \            '. 
  15.   ##   / _    _    |             \ 
  16.   ##  |  a    a    /              | 
  17.   ##  \   .-.                     ;   
  18.   ##   '-('' ).-'       ,'       ; 
  19.   ##      '-;           |      .' 
  20.   ##         \           \    / 
  21.   ##         | 7  .__  _.-\   \ 
  22.   ##         | |  |  ``/  /`  / 
  23.   ##        /,_|  |   /,_/   / 
  24.   ##           /,_/      '`-' 
  25.   ## 

注釋 44

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. long long ago; /* in a galaxy far far away */ 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. long long ago; /* 在遙遠的星系中 */ 

注釋 45

 
 
 
 
  1. /**** 原文 *****/ 
  2. try { 
  3.  
  4. } finally { // should never happen  
  5.  
  6.  
  7. /**** 自譯 *****/ 
  8. try { 
  9.  
  10. } finally { // 這里永遠不會被執(zhí)行 
  11.  

注釋 46

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. /* Ah ah ah! You'll never understand why this one works. */ 
  4.  
  5.  
  6. /**** 自譯 *****/ 
  7.  
  8. // 啊啊?。∧阌肋h都不會明白為什么這個方法有效。 

注釋 47

 
 
 
 
  1. /**** 原文 *****/ 
  2. // this formula is right, work out the math yourself if you don't believe me 
  3.  
  4. /**** 自譯 *****/ 
  5.  
  6. // 這個公式是正確的,如果你不相信我,自己動手算一下 

注釋 48

 
 
 
 
  1. /**** 原文 *****/ 
  2.  
  3. // This was clearly written under duress 
  4.  
  5. /**** 自譯 *****/ 
  6.  
  7. // 這顯然是在脅迫下寫的 

注釋 49

 
 
 
 
  1.                              .='  ' .`/,/!(=)Zm.            
  2.                .._,,._..  ,-`- `,\ ` -` -`\\7//WW.          
  3.           ,v=~/.-,-\- -!|V-s.)iT-|s|\-.'   `///mK%.         
  4.         v!`i!-.e]-g`bT/i(/[=.Z/m)K(YNYi..   /-]i44M.        
  5.       v`/,`|v]-DvLcfZ/eV/iDLN\D/ZK@%8W[Z..   `/d!Z8m        
  6.      //,c\(2(X/NYNY8]ZZ/bZd\()/\7WY%WKKW)   -'|(][%4.       
  7.    ,\\i\c(e)WX@WKKZKDKWMZ8(b5/ZK8]Z7%ffVM,   -.Y!bNMi       
  8.    /-iit5N)KWG%%8%%%%W8%ZWM(8YZvD)XN(@.  [   \]!/GXW[       
  9.   / ))G8\NMN%W%%%%%%%%%%8KK@WZKYK*ZG5KMi,-   vi[NZGM[       
  10.  i\!(44Y8K%8%%%**~YZYZ@%%%%%4KWZ/PKN)ZDZ7   c=//WZK%!       
  11. ,\v\YtMZW8W%%f`,`.t/bNZZK%%W%%ZXb*K(K5DZ   -c\\/KM48        
  12. -|c5PbM4DDW%f  v./c\[tMY8W%PMW%D@KW)Gbf   -/(=ZZKM8[        
  13. 2(N8YXWK85@K   -'c|K4/KKK%@  V%@@WD8e~  .//ct)8ZK%8`        
  14. =)b%]Nd)@KM[  !'\cG!iWYK%%|   !M@KZf    -c\))ZDKW%`         
  15. YYKWZGNM4/Pb  '-VscP4]b@W%     'Mf`   -L\///KM(%W!          
  16. !KKW4ZK/W7)Z. '/cttbY)DKW%     -`  .',\v)K(5KW%%f           
  17. 'W)KWKZZg)Z2/,!/L(-DYYb54%  ,,`, -\-/v(((KK5WW%f            
  18.  \M4NDDKZZ(e!/\7vNTtZd)8\Mi!\-,-/i-v((tKNGN%W%%             
  19.  'M8M88(Zd))///((|D\tDY\\KK-`/-i(=)KtNNN@W%%%@%[            
  20.   !8%@KW5KKN4///s(\Pd!ROBY8/=2(/4ZdzKD%K%%%M8@%%            
  21.    '%%%W%dGNtPK(c\/2\[Z(ttNYZ2NZW8W8K%%%%YKM%M%%.           
  22.      *%%W%GW5@/%!e]_tZdY()v)ZXMZW%W%%%*5Y]K%ZK%8[           
  23.       '*%%%%8%8WK\)[/ZmZ/Zi]!/M%%%%@f\ \Y/NNMK%%!           
  24.         'VM%%%%W%WN5Z/Gt5/b)((cV@f`  - |cZbMKW%%|           
  25.            'V*M%%%WZ/ZG\t5((+)L\'-,,/  -)X(NWW%%            
  26.                 `~`MZ/DZGNZG5(((\,    ,t\\Z)KW%@            
  27.                    'M8K%8GN8\5(5///]i!v\K)85W%%f            
  28.                      YWWKKKKWZ8G54X/GGMeK@WM8%@             
  29.                       !M8%8%48WG@KWYbW%WWW%%%@              
  30.                         VM%WKWK%8K%%8WWWW%%%@`              
  31.                           ~*%%%%%%W%%%%%%%@~                
  32.                              ~*MM%%%%%%@f`                  
  33.                                  ''''' 

注釋 50

 
 
 
 
  1. /************************************************************ 
  2.         *                                                           * 
  3.         *  .=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.       * 
  4.         *   |                     ______                     |      * 
  5.         *   |                  .-"      "-.                  |      * 
  6.         *   |                 /            \                 |      * 
  7.         *   |     _          |              |          _     |      * 
  8.         *   |    ( \         |,  .-.  .-.  ,|         / )    |      * 
  9.         *   |     > "=._     | )(__/  \__)( |     _.=" <     |      * 
  10.         *   |    (_/"=._"=._ |/     /\     \| _.="_.="\_)    |      * 
  11.         *   |           "=._"(_     ^^     _)"_.="           |      * 
  12.         *   |               "=\__|IIIIII|__/="               |      * 
  13.         *   |              _.="| \IIIIII/ |"=._              |      * 
  14.         *   |    _     _.="_.="\          /"=._"=._     _    |      * 
  15.         *   |   ( \_.="_.="     `--------`     "=._"=._/ )   |      * 
  16.         *   |    > _.="                            "=._ <    |      * 
  17.         *   |   (_/                                    \_)   |      * 
  18.         *   |                                                |      * 
  19.         *   '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='      * 
  20.         *                                                           * 
  21.         *      LASCIATE OGNI SPERANZA, VOI CH'ENTRATE               *              LEAVE EVERY HOPE, YOU COME IN 
  22.         *************************************************************/ 

注釋 51

 
 
 
 
  1. /**** 原文 *****/ 
  2. // This was clearly written under duress 
  3.  
  4. /**** 自譯 *****/ 
  5. // 如果將來我讀到這篇文章,我會回到過去并自殺。 

注釋 52

 
 
 
 
  1. /**** 原文 *****/ 
  2. // This was clearly written under duress 
  3.  
  4. /**** 自譯 *****/ 
  5. // 亂七八糟的 SQL語句,但它有效,所以請不要觸摸它 

注釋 53

 
 
 
 
  1. //        .==.        .==.           
  2. //       //`^\\      //^`\\          
  3. //      // ^ ^\(\__/)/^ ^^\\         
  4. //     //^ ^^ ^/6  6\ ^^ ^ \\        
  5. //    //^ ^^ ^/( .. )\^ ^ ^ \\       
  6. //   // ^^ ^/\| v""v |/\^ ^ ^\\      
  7. //  // ^^/\/ /  `~~`  \ \/\^ ^\\     
  8. //  ----------------------------- 
  9. /// 這是條龍 

注釋54

 
 
 
 
  1. /**** 原文 *****/ 
  2. // I from the future read this I'll back in time and kill myself. 
  3.  
  4. /**** 自譯 *****/ 
  5. // 這是垃圾代碼,但現在是凌晨3點,我需要把它修好。 

注釋55

 
 
 
 
  1. // 我不確定我做了什么 

注釋56

 
 
 
 
  1. 如果你想被解雇,請將其刪除 

注釋 57

 
 
 
 
  1. // 切勿動以下代碼,否則我會踢你的 PP 

作者:xor 譯者:前端小智 來源:medium 原文:https://medium.com/javascript-in-plain-english/30-funny-code-comments-that-will-make-you-laugh-1c1b54d4ab00

本文轉載自微信公眾號「大遷世界」,可以通過以下二維碼關注。轉載本文請聯系大遷世界公眾號。


新聞名稱:30 多個有內味道且笑死的人代碼注釋
本文來源:http://www.5511xx.com/article/dphiped.html