What is the best comment in source code you have ever encountered? 業界相關人士會很有感覺的一篇文章 這感覺可能是好笑或是可悲~ 節錄幾則如下
// Dear maintainer: // // Once you are done trying to 'optimize' this routine, // and have realized what a terrible mistake that was, // please increment the following counter as a warning // to the next guy: // // total_hours_wasted_here = 42
//When I wrote this, only God and I understood what I was doing //Now, God only knows
Catch (Exception e) { //who cares? }
/** * 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. */
// I am not responsible of this code. // They made me write it, against my will.
/* You are not expected to understand this. */
// I have to find a better job
創作者介紹
創作者 Jason Lin 的資料庫 的頭像
jsdb

Jason Lin 的資料庫

jsdb 發表在 痞客邦 留言(0) 人氣( 243 )