今年香港的 Blog 界開始蓬勃起來,越來越多的 Bloggers 互相交流,真正形成了一個香港的 Blogosphere。年尾流流,就回顧一下這一年我比較有印象的 Blog 人 Blog 事。
- Blog-you 與 HKB loggers 結合 – 一個 HK Blogosphere 主要入口站點 Blog-you 漸漸成形,與地圖目錄 HKB loggers 結合,新
One of the joys of learning new programming languages is the ahamoments when something really clicks. The biggest aha moment I've everhad was with Prolog, when an assignment went from nigh impossible totrivial in a blinding flash of obvious insight.
But the one I remember most distinctly is from years ago, when I waslooking at Lisp (again), and finally realized that the fundamentaldata structure of Lisp is not lists but cons cells .
While the major use of cons cells is building lists, cons cells
The comment on my AClosureConfusion entry brought up a little Pythonsurprise that I had known about in the back of my mind but neverthought about fully before: the consequences of Python's scoping rulesfor variables.
Ignoring closures for the moment, Python only has two scopes forvariables: global to the module and local to the entire function.(Closures introduce additional scopes for the variables of the 'outer'functions.)
Well, sure, you know that. But the consequence is that any variablein a function
Somewhat recently a discussion came up about the proper use of asserts over on Ned Batchelder's blog, with a number of people feeling thatthey were overused or outright misused by being applied to situationsthat really should have actual error recovery. (One nice phrase usedwas 'exploding comments'.)
I'll admit it: I use asserts in my code. I use them when I don't thinksomething can happen in an algorithm, but I'm not absolutely sure andif I turn out to
今年香港的 Blog 界開始蓬勃起來,越來越多的 Bloggers 互相交流,真正形成了一個香港的 Blogosphere。年尾流流,就回顧一下這一年我比較有印象的 Blog 人 Blog 事。
當我聽說 Peter Jackson 版本的《 King Kong 》會有足足三個小時,我馬上起了一個疑問:是不是 PJ 力有不遞?「魔戒」系列是長篇連續小說,世界觀宏大,人物又多,用很多的篇幅去交代是無可厚非的事情,但《King Kong》故事並不複雜,為什麼仍
聖誕古裝片