轉摘:大師風範

很舊的貼子了, 但今天看到, 仍覺得讚嘆驚訝!!!

轉貼:Interview with Lino Tadros by Clay Shannon
http://bdn.borland.com/article/0,1410,30085,00.html

What was the funniest experience you've ever had related to programming?

The funniest experience I had was during the Delphi 3 development cycle when I had a serious problem running one of the builds on my machine and after wasting almost 4 hours, I went to Anders and Chuck and requested help. Anders and Chuck came to my office, sat down next to each other in front of my machine and started debugging delphi32.exe inside of TD32. I sat behind them watching.

Few minutes later, Anders pointed to the CPU window at some bits and told Chuck "Look Chuck, this byte is not supposed to be here, this is a pcked record" Chuck looked at it for 5 seconds and confirmed. Then Anders looked at me and said "Lino, during the install from the network, one of the packages shifted 1 byte to the left for some reason, delete the package and reinstall".

That was funny because I felt like I had the wrong job and that I should consider opening a hot dog stand somewhere instead of software development. These folks are Gods!

英文的翻譯大概是這樣的,轉自http://www.cnblogs.com/haoxiaobo/archive/2005/02/04/101780.html

最有趣的事情發生在Delphi3的開發時期,當我在自己的電腦上運行編譯一個程序時遇到一個嚴重的問題,並且已經浪費了我大約4個小時,我只好去找Anders Chuck尋求幫助,Anders Chuck來到我的辦公室,他們差不多同時坐在我的電腦前面並開始用TD32調試delphi32.exe,我坐在他們後面看着。 幾乎沒用幾分鐘時間,Anders指着屏幕上的CPU窗口中的幾個二進制位並且告訴 Chuck看!Chuck,這個比特好像不應該在這兒,這是一個記錄。”Chuck看了5秒鐘並證實了Anders的意見。然後Anders看着我並說:利諾,在從網絡安裝期間,其中一個包由於某些原因向左偏離了一個字節,刪除這個包並重新安裝。

看後,只有一個感覺:

“高山仰止,景行行止,雖不能至,心嚮往之”

另一個類似的故事, 但有點不同的是這裹:採訪著名Delphi開發專家Alain 'Lino' Tadros

http://www.delphidevelopers.com/borland/interview_lino.htm

DI: 在你作爲開發者和培訓師的職業生涯裏,或許會有一些有趣的不尋常的經歷,與我們分享一些吧。

LT: 我真希望你從來沒問過。我要告訴你兩個故事,在一開始做Delphi 2的時候,我是Anders Hejlberg的 QA 工程師,做所有的OLE 和 COM有關的技術工作。當有一天做Delphi 3的時候,我從服務器上安裝了這個構建版本,來測試Anders新加的一些特性,我不能正確的運行Delphi32.exe,於是我宣佈這個構建版本 DOA(dead on arrival),其他的QA小組成員報告說他們用同樣的版本可以順利進行他們的測試,於是我重裝了一次,但是仍然不行!

我跑過幾間辦公室去問Anders和 Chuck可能會是什麼毛病。他們兩個都答應過來看看。我怎麼也不會忘記那一天:Anders Hejlsberg 和 Chuck Jazdzewski在我辦公室挨着坐着把Delphi32.exe裝載到TD32 ,看着Delphi 的啓動代碼,幾分鐘後,Anders 說:“看,Chuck ,這個字節不應該在這裏,那是一個緊湊記錄。” Chuck 回答說:“是的,看來是在從網絡安裝的過程中它被移動了一個字節。”當時我站在他們的身後,我能想到的的所有事情就是我這件事中犯了個大錯誤,甚至開始考慮下一份工作了:開一家熱狗店。

第二個故事發生在Delphi 3發售的那天。我已經呆在那裏四天了,就是爲了保證新的ActiveX 架構已經做好面世準備。 我在前幾天就已經三次暫停過這個產品的推出了。在我檢查完最終版本時,我看見R&D 和 QA 工程師正在祈禱我不會發現任何其他問題,那樣我們就可以有個應得的假期了。於是我決定和這個小組開個玩笑,我用Delphi 3 編了個ActiveForm,在它的OnActivat事件中有這樣一句話:

MessageBox(Handle, 'Access Violation at Address 004458AZ '+
'in module SampleAX.dll. Read of address 000002F4',
'SampleAX', MB_ICONSTOP or MB_OKCANCEL);

我要小組的幾個成員過來,並讓他們好好看看內存地址,我演示了在任何容器裏調入這個ActiveX 都會顯示那個我創建的信息,這就證明我們還有問題。甚至在讀過了內存地址裏所提示的信息之後,也沒有一個人能夠告訴我爲什麼。最後,Danny Thorpe 來到我辦公室看了看,五秒鐘後他看着我說,“你真是隻討厭的小狗,Lino!”

一條SQL,看起來雖然不太復雜,但是請教別人才會的, 故記錄之:

Select P.*,Isnull(sum(D.SaleInvDetQty),0) Qty
From (Select * From (Select Distinct ProductCode From Product) P,
        (Select MM=1 Union All Select 2
         Union All Select 3 Union All Select 4
         Union All Select 5 Union All Select 6
         Union All Select 7 Union All Select 8
         Union All Select 9 Union All Select 10
         Union All Select 11 Union All Select 12) M
) P left Join SaleInvDet D
  On P.ProductCode=D.ProductCode  and Month(D.SaleInvDetTime)=P.MM
   and D.SaleInvDetTime between '2004/01/01'  and '2004/12/30'
Group By P.ProductCode,P.MM
Order By P.ProductCode,P.MM

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