小狗小貓,我和伴侶

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

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

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

癡線!

真是忍不住要post。
節錄自今期一仔封面故事內容。

知情者=
幕 後 工 作 人 員 = 當事人 (詳情請參考《大娛樂家》)

為了上封面,老屈有料專業主持
丘凱敏

─────────────────────────────────
Continue reading...