星期六, 12月 30, 2006

拜Python教之第一次大規模公開入教辦法草案

本教為清新健康的黑暗地下教會,
凡思想成熟且生理狀態及心理年齡超乎凡人之人類皆可入教

但凡本教教眾須嚴格遵守 -=拜Python教=- 的 "三聖規" 
(也就是愛,勇氣與希望)
違者將被處以JAVA絞刑(註1):

拜Python教的三聖規解釋如下:

1.愛: Python之愛要發於心及於身 時時對人間散播Python的愛之福音
   並對Python麻瓜施以憐憫的眼神 協助其早日進入Python聖土

愛的指導原則實作:

打開Python, 並鍵入import this, 對麻瓜們朗誦 The Zen of Python:

>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!


2.勇氣: 要能勇於在各項專案使用Python 
    時時在人們覺得不可能使用Python的地方使用Python

勇氣指導原則實作:

能跟完全不懂Python的主管解釋Python
直到他再也受不了你煩他為了打發你而讓你在各個專案使用Python為止

3.希望: 不論在任何從未遇過的艱困情況都能面帶微笑的使用Python
因為那Python是我們的主, 主是不會遺棄我們的

希望指導原則實作:
不論在任何情況下都不說"這python可能做不到"
而是換個說法:"這也許需要寫一點點C的擴充再加上Python"

(註一: 即傳說中一種將生平所有寫過的程式全部改用JAVA重寫之一慘無人道之極致酷刑)

回覆此帖並於心中發誓遵守三聖規後 即可立即加入拜Python教(表)

2 則留言:

shawn 提到...

哈哈...實在大受提姆使徒的感動,我要入教

使徒提姆 !? 提到...

歡迎歡迎 雖然說我早就把你算在內了 呵呵