程序員的謊言

夢短夢長俱是夢,年來年去是何年。去年的今天,我還在上海,整理了 請用一句話證明你是程序員 。而今天的我已回合肥工作半年多時間,很慶幸又見故鄉廬州月。

兒時鑿壁偷了誰家的光
宿昔不梳 憶苦十年寒窗
...
半生浮名只是虛妄
三月 一路煙霞 鶯飛草長
柳絮紛飛裏看見了故鄉
...


又忍不住感概了幾句,打住打住。在1024這個特殊的日子裏,總想整理一些非技術相關的東西。

很多人都知道銷售人員的話不能全信。在IT行業中,上身格子襯衫、雙肩包,下身牛仔褲、運動鞋,生活低調、工作熱情、代碼風騷、內心狂熱的程序員經常被貼上“少言寡語”、“老實人”等標籤,那麼這個“老實人”羣體真的“老實”嗎?

https://www.quora.com/What-are-the-most-common-lies-told-by-programmers

本篇參考上面這一篇帖子,結合自身工作日常以及國內程序員的調侃,總結了如下程序員常說的“謊言”。


Yeah, I tested it.

放心,我測過!


Only need to change one line of code, and will not affect other programs.

只需要改一行代碼,不會影響其他地方的。


I'll comment and document my code later.

我以後再給代碼寫註釋和文檔。


TODO
FIXME

後續再優化完善


That's easy, it'll just take a couple of days.

那個簡單,幾天就能搞定。


It works on my machine.

在我機器上沒問題。


I'll add unit tests in the next code change.

下次提交代碼我再添加單元測試。


I am 90% finished.

我已經完成90%了。


// This can never happen.

// 這種情況不可能發生。


It's not a bug, it's a feature!

這不是Bug,這是特性!


I'll be done in like 2 hours.

大概2小時能搞定。


I only have like 3 things left to finish.

只剩下3個小問題了。


It's almost done.

就快完成了。


Yeah, it is a known bug.

這是一個已知(潛臺詞當前無法解決)問題。


It will just take 2 minutes to fix !

這個兩分鐘就可以修復!


You must have the wrong version.

一定是你使用的版本不對。


I haven't touched that module in weeks!

我已經好幾周沒動過那個模塊了!


It must be a hardware problem, nothing to do with software.

這是硬件問題,與程序無關。


It's just some unlucky coincidence.

這只是偶發事件。


There has to be something funky in your data.

你的數據肯定有問題。


I'll improve the solution later.

以後再改進方案。


This code is self-documenting.

代碼即文檔。


This fix is so simple that we can put it straight into production.

這次修復改動很小,可以直接放到生產環境。


It was working earlier. Some one changed something!

先前還是好的,肯定有人動了什麼東西!


It's just a temporary solution, it won't be used in production.

這只是個臨時方案,不會用在生產環境。


We can solve this problem in the next version.

下個版本解決這個問題。


git commit -m "changing the log message", but the truth is fixing some bug.

提交代碼時描述信息是修改日誌,實際這個提交修復了一些bug。


Yes, I have a girlfriend.

我有女朋友。


The bug isn't in my code; you are using it incorrectly.

這不是代碼問題,只是你不會用而已。


I'll just cut-and-paste this code for now, but I'll make a super-class when I have a moment.

我先拷貝代碼,等以後有時間再提取一個父類出來。


Dev: This will take 10 days.
Boss: Can you do it in 5?
Dev: Sure!

開發人員:這個需要10天做完。
老闆:5天不行?
開發人員:差不多吧!


Environment issue. Was working fine on my dev box!

肯定是環境問題,在開發環境不跑得挺好嘛!


Code is compiling.

代碼正在編譯。


It was working ...did something on the network change?

現在來看一切正常,當時是不是網絡抖動引起的?


This refactor is small and low risk.

這次重構很小,基本沒什麼風險。


Documentation is coming soon.

文檔再等等。


Just comment this code for now , it may be used later.

先註釋掉這裏的代碼,以後說不定還能用到。


在面對一個不想接的需求時,程序員的幾個理由:

  1. 這個需求太out了
  2. 目前服務器性能跟不上
  3. 現有的技術實現不了
  4. 去找老闆排期吧,這個很費時間的

同行的朋友們,回憶回憶這些年你們說過哪些“謊言”,歡迎評論區補充!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章