OCD 4

Past papers 14

“Past papers” means “past HKCEE/HKAL examination papers”. The topic is for Hong Kong students who are facing HKCEE or HKAL. But the general principles can also be used for tackling other public examinations.

這段改篇自2010年 1 月 3 日的對話。

(KYH:我考試有時明明某一題做完做對了,但是覺得寫得很混亂,所以會擦掉,重新寫一次。)

那就應該算是「情緒病」,因為你這個問題十分浪費你的考試作答時間。如果那導致你整份試卷損失幾分的話,你該科隨時會低一個 grade(成績等級)。那就是我所講的「實質影響」。

你的問題算是「情緒病」,因為你的問題對你有「實質影響」。

我說我在二十八歲時,可以排除了九成的情緒病。我有很多方法,其中一個方法可能對你有用,可以用來解決你這個問題。

那個方法是:「不要百份百跟足你的感覺行事。」

例如,你的感覺是,你的字體不美,想擦掉,重新寫一次。哪應不應該聽從這個感覺,真的把那些字重新寫一次呢?

完全不聽從的話,心裡會極不舒服。完全聽從的話,又會浪費大量的時間。哪怎麼辦呢?

你可以只聽從一部分,但不聽從全部。例如,感覺是要你擦掉一整頁,重新寫一次。但你堅持只擦掉半頁。一方面,你不是完全聽從感覺,所以你不會浪費太多的時間。另一方面,你不是完全不聽從感覺,你心裡即使有不舒服的感覺,也不會大至不能接受的程度。

還有,你長期這樣做的話,慢慢就會習慣了「只擦掉半頁」。當你「只擦掉半頁」也不會有不舒服的感覺時,你就可以試試「只擦掉四分之一頁」,如此類推。

你會這樣(擦掉,重新寫一次),是因為你不容許自己有不舒服的感覺(覺得寫得很混亂)。我這個方法的原理是,要你容許自己有不舒服的感覺。有時,容許自己有不舒服的感覺,不舒服的感覺反而傷害不到你。

— Me@2010.03.30

2010.03.30 Tuesday (c) All rights reserved by ACHK

Lisp macros

Lisp’s uniform, parenthesized syntax works especially well with macros. Languages of the Lisp family, such as Common Lisp and Scheme, have powerful macro systems because the syntax is simple enough to be parsed easily. Lisp macros transform the program structure itself, with the full language available to express such transformations. Common Lisp and Scheme differ in their macro systems: Scheme’s is based on pattern matching, while Common Lisp macros are functions that explicitly construct sections of the program.

Being able to choose the order of evaluation (see lazy evaluation and non-strict functions) enables the creation of new syntactic constructs (e.g. control structures) indistinguishable from those built into the language. For instance, in a Lisp dialect that has cond but lacks if, it is possible to define the latter in terms of the former using macros.

Macros also make it possible to define data languages that are immediately compiled into code, which means that constructs such as state machines can be implemented in a way that is both natural and efficient.

— Wikipedia on Macro (computer science)

2010.03.30 Tuesday ACHK