這也是一個經典的瞬間


劉翔今天因傷退賽
相信很多人都會失望
畢竟過去幾年
他背負過太多中國人的希望
可惜希望越大
失望越大
我並沒有因為他的退出而難過
有時候
退出比死撐下去來得困難
也來得可貴
過去四年
劉翔由普通運動員變成中國體育的一個象徵

小狗小貓,我和伴侶

多年前在沙田某村屋住的時候已經開始喜歡狗隻,當時屋主養了兩頭狗。回家時總是衝出來飛上身跟你玩,不認識牠們一定嚇親。成隻大唐狗跳上來喎,就是這樣反而覺得他們傻得可愛。

幾年間住的地方及生活方式似乎還未準備

Continue reading...

The problem with using tuples and lists to hold structures

If you need to hold several bits of data about something in Python, it'sawfully tempting to just put everything into a tuple or a list and bedone with it; it's certainly the easiest way, and so crops up often .

(I've read that that Pythonic way to decide between a list and a tupleis whether or not the data is all the same type, in which case you use atuple, or different types, in which case you use a list. I don


謝安琪訪問全文

星期日明報幾乎刊出了全文,真是感激。謝安琪當然有型,但她不是有型咁簡單;其實她答問題時並非立場和態度先行地大鑼大鼓,只是她慢慢說自己的考慮和分析,都有理由,而且站在矛盾尖銳的交叉地帶,於是不會被擊倒。

Thinking about the best way to handle command registration

Suppose that you have a Python utility program that does a number ofrelated things; it's invoked as ' program command .... ', and decideswhat to do based on what the command is. The obvious way to implementthis in Python is to have a function for each command and a top-leveldispatcher that looks up the function to call for each command andpasses it the arguments to process. Clearly you don't want to hard-codethis in the dispatcher function in a big


Another reason to avoid having comments

To go with my previous thoughts about the purposes of comments , here is another reason that people might want to nothave them on their blog: they eat your limited time.

In a sense, comments on your blog carry with them an implicit duty toreply; while you can skip this, it may look odd andcause bad reactions. However, comments that you write will probably getless of an audience than a new entry. So if you only have a limitedamount of time to write things for your blog


Why your blog comments have less of an audience than new blog entries

Expanding on a remark in the previous entry : Ithink there are several reasons why your comments are likely to get lessof an audience than new entries. First, in most blog setups new commentsare less obvious to readers than new entries, as your readers have to goback by hand to look for them. This is especially so if people are onlyinterested in a few comments.

It's possible to work around this with a different blog layout, but itdoes mean a moderately radical change from how people


謝安琪訪問全文

電腦有事,今晚十點upload。

Why it matters what users like

In theory, you can force a lot of things down the throats of users,whether or not they like it; you provide what you provide, and theusers have to live with it. (I will assume that the 'you' here includesmanagement.)

In practice, this is not so, and you ultimately do need the supportof your users to survive and prosper. No system can last unless theusers actually like it and it does what they want. If users dislike yoursystem or are just


Scrub

I taught my students, who were going to the operating theatre with me last week, the scrub techniques. Rituals abound in the operating theatre, I confess, with all the meticulous and universally-agreed ways of washing our hands (or "surgical scrub"). The conventional ways of surgical scrub have been performed in countless times obsessively throughout our career life and with such conviction that they must be gospel. But are they?

I still remember my clumsiness (and that of my students, too) with the elbow