Testing versus extensibility

One of the test driven development mantras that I've heard is 'if youhaven't tested it, it doesn't work'. Which leaves me with a questionthat I don't know the answer to: how do you test an extendible format?

Suppose that you have a data file format (for example, an XML dialect)that allows more or less arbitrary extensions to be embedded in it, andalso that you have some agreement on how your program is supposed tohandle extension elements that


北京印象

Continue reading...

北京博客論壇—「除了帽子什麽都可以綠」(一)

我最後一次因工作跑大陸,數數手指原來已經是二千年的事了,那個時候我還在Bates 達彼思上班(我至今為止還是覺得這是云云國際4As中改得最好的中文名),又做煙又做酒但同時又做保健品等等的大小客戶,雖然做得有點人格

Continue reading...

莫斯科一日遊

Continue reading...

Lady First 專欄(56)

《 為 愛 私 奔 》


我最好的朋友,是位外型秀麗斯文溫柔的辦公室女郎,最近,她跟一位外型… … 嗯… … 頭髮跟梁國雄一樣長,留鬚兼有大量紋身的男人熱戀中。

即使他是好男人,但外殼「有型」到極致,完全是趕絕外母負分數那種

好又一餐唔好又一餐

對食沒有要求的人,其實吃什麼都開心,重要的是跟誰一起吃,懷著什麼心情吃.

Continue reading...

Summer

Thank God for the air-conditioning. Summer nearly does me in every year. You can feel it. Chocolate melts in your bag before reaching your mouth. The shirt simply sticks to your skin with sweat, and the temperature is unforgiving.

It's no accident that schools break at the summer time. This idea of summer break is not new, but certainly not to be taken for granted. For those of you interested in the history of education, children in the old days attended school year-round,

SSDs and the RAID resync problem

By now, most people know that SSDs have a problem with long term use;their write speed degrades (sometimes dramatically) once enough datain total has been written to the SSD, even if the filesystem has lotsof free space left (because you've written files and then deletedthem). The way around this is for OSes to use the TRIM command to tell SSDs whichparts of the device aren't used by the filesystem.

It recently struck me that this has interesting implications for partof the


給全港師奶的信

「Daisy,拜託,只有你幫到我。」K先生說,一隻手不安地攪拌咖啡。

這傢伙好幾年沒跟我聯絡,今次莫非想問我借錢?

「想麻煩你……幫我寫封信。」

「我只做 IPO,不幫人寫遺囑。」說罷,我用 napkin 印印嘴唇。Foie gras 已經吃到有點

終於出發!

Continue reading...