我和太皮關於澳門文學的討論(希望更多人來參與)
以下是到目前為止我們討論的情況:
姓名: 太皮
留言:澳門文學連《澳門日
少年夫妻老來伴
今天晚上的《識法代言人》,
讓我眼紅紅鼻酸酸。
伯伯陪著患有老人痴呆症的太太,
對身邊的年輕人說上人生小道理:「唔通十八廿二時靚就愛,老左醜左就唔愛咩。」
狀媽看著伯伯急步跑回去照
What I use asserts for
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
Unix folklore: using multiple sync commands
There is persistent bit of folklore in the Unix world that you shoulddo several sync commands before shutting down or rebooting a Unixmachine. Even today, you'll see a lot of people following thisfolklore, generally using ' sync; sync; sync '.
People who do this irritate me, because they are doing it wrong and ina way that makes the whole folklore ineffectual.
The sync folklore dates from the very old days when Unix was primitiveand two things were true. First, the sync()
三字頭聽三字頭
A thought about free software licenses
It's recently occurred to me that one way to think about the GPLversus BSD/MIT licensing issue is that they are embodying twocompeting bits of psychology: people want to share their work and haveit widely used, and people don't like being taken advantage of.
(Although it may be surprising, there is quite a bit of evidence thatwe are in some sense wired to feel strongly about 'unfairness' and topunish it, even at a cost to our own interests. Psychologists havedone
讀書的時間和空間
災難
沒有禮物的聖誕,公眾假期,凌晨五點醒來,電腦突然開唔到機。打唔到俾人叫幫手。一個還未下定決心做論文的人突然被剝奪做論文的權利,情況馬上逆轉為搶救論文檔案,可謂冰火五重天。經自行查
火鳳燎原
Thinking about a closure confusion
Consider the following Python code, which is a very simplified versionof certain sorts of real code that people write:
ll = []for i in range(1,10): ll.append(lambda z: i+z)print ll[0](0), ll[8](0)
A lot of people writing Python code like this for the first timeexpect to see it print '1 9', when in fact it prints '9 9'.
What I think