這裡搜集了一些關於程式設計的笑話,閒暇時可以看看。

首先是在 stackoverflow 上排名最高的是這一則問路的笑話。

問路

A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon further and shouts to get directions, “Excuse me, can you tell me where I am?”
有一個駕駛熱氣球的人發現他迷路了。他降低了飛行的高度,並認出了地面上的一個人。他繼續下降高度並對著那個人大叫,「打擾一下,你能告訴我我在哪嗎?」

The man below says: “Yes. You’re in a hot air balloon, hovering 30 feet above this field.”
下面那個人說:「是的。你在熱氣球裡啊,盤旋在30英尺的空中」

“You must work in Information Technology,” says the balloonist.
熱氣球上的人說:「你一定是在IT部門做技術工作」

“I do” replies the man. “How did you know?”
「沒錯」,地面上的人說到,「你是怎麼知道的?」

“Well,” says the balloonist, “everything you have told me is technically correct, but It’s of no use to anyone.”
「呵呵」,熱氣球上的人說,「你告訴我的每件事在技術上都是對的,但對都沒有用」

The man below replies, “You must work in management.”
地面上的人說,「你一定是管理層的人」

“I do,” replies the balloonist, “But how’d you know?”
「沒錯」,熱氣球上的人說,「可是你是怎麼知道的?」

“Well”, says the man, “you don’t know where you are or where you’re going, but you expect me to be able to help. You’re in the same position you were before we met, but now it’s my fault.”
「呵呵」,地面上的那人說到,「你不知道你在哪裡,你也不知道你要去哪,你總希望我能幫你。你現在和我們剛見面時還在原來那個地方,但現在卻是我錯了」

另外網路上也有一些這類型的笑話,我也順便放上來。

牧羊人

從前,有一牧羊人,他在一條荒廢的公路邊照看他的羊群。突然,路上一輛嶄新的保時捷突然來了一個緊急剎車,停在他面前。車主是一個穿着阿曼尼的西裝、Cerutti 的鞋子、帶着 Ray-Ban 太陽眼鏡,TAG-Heuer 腕錶,系著一條范思哲領帶的年輕人走了出來,問牧羊人:

「如果我能告訴你這裡一共有多少只羊,你能給我一隻嗎?」

牧羊人看看這個年輕人,然後又看看他那成群的在牧場上吃草的羊,說:「行。」

年輕人停好他的車,用筆記本連上無線網絡,接入美國宇航局的服務,用 GPS 掃描地面,然後進入數據庫,導出 60 張填滿了算法數據和校驗數據表的 Excel,然後用他的高科技的微型打印機打印出一份 150 頁的報告。他轉過頭來對牧羊人說:

「你不多不少一共有1586隻羊。」

牧羊人非常高興,說:「非常正確,你可以拿走一隻羊。」

年輕人選了一隻,放進保時捷的後車箱。牧羊人看着他,問:「如果我能猜出你的職業,你能把後車箱裡的那隻動物還給我嗎?」

年輕人回答:「當然,為什麼不行呢?」

牧羊人:「你是一個IT顧問。

年輕人:「你怎麼知道的?」

牧羊人:「非常簡單。首先,你不請自來。第二,你讓我花錢來換取我已經知道的事情,三,你根本不知道我是幹什麼的…現在你能把那隻狗還給我了嗎?」

其他

tnylea 整理了一些好笑的對答,有些可能有點假,但是有些確實很好笑,tnylea 說如果其中有三個以上你看不懂,那可能是因為你不是程式設計師,不過有很多我還真的看不是很懂。:-)

Q: how many programmers does it take to change a light bulb?
A: none, that’s a hardware problem

Q: “Whats the object-oriented way to become wealthy?”
A: Inheritance

Q: Why did the programmer quit his job?
A: Because he didn’t get arrays.

Q: What did the Java code say to the C code?
A: You’ve got no class.(你一點水準也沒有)

Q: Why are Assembly programmers always soaking wet?
A: They work below C-level.

Q: What do cats and programmers have in common?
A: When either one is unusually happy and excited, an appropriate question would be, “did you find a bug?”

Q: What is the most used language in programming?
A: Profanity.

Q: Why did the database administrator leave his wife?
A: She had one-to-many relationships

Q: Why do programmers always get Christmas and Halloween mixed up?
A: Because DEC 25 = OCT 31(十進位的 25 等於八進位的 31)

Q: How did the programmer die in the shower?
A: He read the shampoo bottle instructions: Lather. Rinse. Repeat.(無窮回圈)

參考資料:tonylea香港矽谷