preload
一月 14

剛找了一下這三種動態語言的比較,來小小整理一下。

Perl


Perl 語言的中心思想可以集成為一句話「TMTOWTDI」:

There’s More Than One Way To Do It.
(不只一種方法來做這件事。)

Perl 的作者 Larry Wall 建議可以把這個縮寫詞念成「Tim Toady」。

另一個常常讓人想起的 Perl 俗語是:

Easy things should be easy, and hard things should be possible.

Python


Python 發明人 Tim Peters 寫的 python 格言(稱為The Zen of Python)道:

There should be one– and preferably only one –obvious way to do it.

Ruby


KISS原則(Keep It Super Simple)

POLS原則(最小驚訝原則):Principle Of Least Surprise

參考資料1:人蔘劇場 – Ruby,Python,Perl 中心思想的不同
參考資料2:Lighty RoR: Ruby 跟 Python 本質上不同

參考資料3:INET6: 先天與後天程式語言風格

Tagged with: