The danger of powerful generality, illustrated

When you are coding the framework for a web application, thereis a lot of annoying component registration boilerplate . It is tempting to get rid ofthe boilerplate by using some introspection-based abstraction, and insome ways it's the right thing to do; 'don't repeat yourself' is one ofthe tenets of modern programming.

When you do this, it's tempting to make it straightforwardlyfile-based. For example, a web application with various operations couldwork by having the framework work


mi ming mart亮相《壹週刊》壹盤生意訪問

2009年08月20日
Mi Ming Mart ( www.mimingmart.com )

記者初次見袁彌明,她笑容可掬,比平時在電視上見到「串串貢」的樣子不一樣,但不足兩分鐘她已變臉。租用其鋪部分位置開化 妝班的拍檔 Kenneth,隨意用了其電腦查閱電郵,她即時

一向有志從商的袁彌明,憑着個人於娛樂圈打滾多年所儲下的知名度及其手上每月賣逾一千罐的綠粉飲品,展開其售賣美容護膚產品的事業。
Continue reading...

請勿抄襲




已經不知是第幾次了
ctm時事討論區有網民把本人文章以"看討論區有感而發"為題


當成自己的意見
連結如下:

https://forum.cyberctm.com/forum/viewthread.php?tid=395591&extra=page%3D1

網民的討論中已有人說可能是原作者自己貼上

瘦虎肥龍爭霸戰‧二

經過頭一兩天的過渡期, 蜜柑開始嘗試適應Ding Ding, 在她的地頭─書房, 轉來轉去 (更闖到她的座廁) . Ding Ding存在感仍然薄弱, 繼續在電腦檯下做三文治貓. 不願出來, 又不肯吃喝, 令我們頗為擔心. 蜜柑有心情對付敵人之餘, 則

Python modules should not reinvent OSError

In light of yesterday's entry , here is one of my newrules for Python modules, especially extension modules written in C:

If you're going to raise an exception because a system call failed,don't make up a new exception for it. Raise either IOError or OSError themselves.

Every deviation from this causes annoyancesfor Python programmers. This is especially visible in the situationwith signals and EINTR , where I really do not want tobe rewriting the same code over and over again with different exception


跋足狂奔的生還者


今日是 “workcamp free day“ ,即是義工們在工作營期間的假日。我們在清晨便離開木屋,準備下山去,這是我們第一次下山到市中心去!
在那段下山必經的 斜坡,我和另一義工都仆倒了,褲管沾滿了泥濘。我們在國家公園內步行了二個小
Continue reading...

極端


黑白分明是良好的願望。

小朋友看的卡通片,主角好壞分明,絕不混淆。可是現實世界的人和事,除了黑白兩種色,還有沒有別的顏色?

也許是卡通片看得多了,我們身邊總有一些想法簡單的成年人,誤以為小城的大小事務都是

在森林和原野

是的,上文提及那河流就是山下那條可通往北冰洋的葉尼塞河。

需要到山下的河流洗澡可不是令我們一眾人感震撼的主因,背後的食水儲備問題方令我們真正的擔憂起來。原來木屋主人沒想過我們一眾義工需要使用食水,所以他
Continue reading...

工作營第一日

工作營的俄藉Camp Leader昨夜建議我明早到克拉斯諾亞爾斯克市中心的中央警局報失背包,但俄羅斯警察的官遼風氣甚盛,她着我要有心理準備那可能會折騰大半天。
昨晚我真的完全睡不着,眼光光望天光,整晚想着旅程才剛開始就發
Continue reading...

Link: Using colour well in data visualization

Why Should Engineers and Scientists Be Worried About Color? is abouthow straightforward use of colour in data visualizations can mislead youand hide information (and how to do better). Some of their examplesare eye-opening and alarming.

(Via Hacker News .)

(Since I took up photography I've had a muchincreased interest in how we perceive things, including colour.)