瀏覽單個文章
crowofblack
New Member
 
crowofblack的大頭照
 

加入日期: Apr 2007
您的住址: 臺灣
文章: 2
引用:
作者怒火燒盡九重天
我以前有位同事,他寫code是幾乎不用空格跟括號的。
然後一行敘述拉得超長,裡面還混合一大堆不同優先權的
operator。其他同事在debug時,trace到他寫的module,
完全看不懂,莫不幹聲連連。

不過從暗黑兵法的角度來看,他這也算是在保護他自己
的code以及工作不被取代。因為這個module除非換人
重寫,否則只有他老兄有辦法maintain。


如果結構寫得好的話..程式碼隱晦點是不介意
但寫了幾十行卻連一行註解都沒..這我就接受不了了

切身之痛..
有次我們老師寫個霍夫曼編碼的程式不到百行
格老子的..當下有如天書..直到兩年後才勉強看懂..
不過的確學到不少東西
__________________

Alice Madness Returns - Sing Me to Sleep

I wonder if I've been changed in the night?
Let me think: was I the same when I got up this morning?
I almost think I can remember feeling a little different.
But if I'm not the same, the next question is "Who in the world am I?"
Ah, that's the great puzzle!

--Alice's Adventures in Wonderland
舊 2012-01-01, 09:44 PM #100
回應時引用此文章
crowofblack離線中