一板之隔


Continue reading...

叮噹碼頭


Continue reading...

獨守空閏


Continue reading...

Finally understanding the appeal of 'Interfaces'

I spent a long time not really getting the need for coded, explicitimplementations of 'Interfaces', by which I mean things like zope.interface . Itdidn't help that I generally encountered them as part of very large,complex systems like Zope and Twisted, and they tended to come with alot of extra magic features, which made the whole idea seem like thesort of thing you only needed if you had to deal with such a beast.

Then, recently, the penny dropped and I finally


實現和逃避

朋友和我都是打機長大的,一樣沉迷在角色扮演類的遊戲之中,但甚麼遊戲才是角色扮演呢?內裏有些故事。

角色扮演,對他來說,就是以某一個角色的身份活一次,不單是活,還是以那個角色獨特的身份、世界觀、優點和缺點

Zappos留人絕橋,送錢俾剛接受完training的新人走?

呢個世界上有無老闆會俾 training 新人, train 完會叫員工可以選擇留低或者大拿拿攞住 $1000 蚊美金無條件咁走人?

Zappos 呢一間網上賣鞋的公司就係用這個方法篩選新人,佢成唔成功?自己聽下哈佛大學教授點講。


'Is-a' versus 'is-a-descendant-of'

One of the things that my issue with the Python re module not exposingits types has firmly mashed my nose into is thedifference between 'is-a-descendant-of' and 'is-a' in object-orientedlanguages. It's conventional to think of them as more or less the samething, even in a loose duck typed language like Python; it just seemsto make sense for all compiled regular expressions to descend from asingle base class, just as it theoretically makes sense for both


Quick things about Kampfer 07

(Warning: mild spoilers.)

From Author :

Why did Kaede (Sakura) lose consciousness?

I concur that we don't have enough information. However, there seems tobe a striking pattern that Kaede drops out of the action just when hernose would otherwise be rubbed in the existence of Kampfers, and I doubtthat this is a coincidence.

I continue to think that Akane was not shooting seriously for whateverreason. Otherwise, she is an embarrassingly bad shot; has she hitanything meaningful?

(Since


打機應否用攻略?

學生應否談戀愛?這個問題的經典在於「應否」這兩個字,一個人這樣問,正是明明白白的認定了「學生不應談戀愛」,他問你,是想你提供理由去支持他。學生應否談戀愛?請你告訴我,他們為甚麼不應該。否則,辯題早就應

A limitation of Python types from C extension modules

It's recently struck me that there is an important difference betweentypes (and classes) created in a Python module and types/classes thatcome from a C-level extension module.

Suppose that duck typing is not enough and soyou really want to make a class that inherits from an outside class(one in another module), yet overrides all of its behavior. This letsyou create objects that work the way you need them to but will pass isinstance() checks that are insisting on instances of the