revise python-philosophy

This commit is contained in:
Jerry Lee
2014-09-02 21:03:45 +08:00
parent b05c7fbaa7
commit 2ed81ddb4b

View File

@@ -1,8 +1,8 @@
![Python-Programming-Language](Python-Programming-Language.png)
Python PhilosophyPython哲学
============================================
![Python-Programming-Language](Python-Programming-Language.png)
原文及译文
----------------------
@@ -33,13 +33,13 @@ Python PhilosophyPython哲学
11. 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 ***[4]***.
尽管这个做法在刚开始的时候可能不是那么显而易见,毕竟你不是荷兰人`Python`之父。
尽管在刚开始的时候这个做法可能不是那么显而易见,毕竟你不是荷兰人`Python`之父。
12. Now is better than never.
“现在” 优于 “决不”。
* Although never is often better than **right** now.
尽管 “决不” 常常优于 “**马上**”。
13. If the implementation is hard to explain, it's a bad idea.
如果一个实现难于解释清楚,说明实现是个差的想法。
如果一个实现难于解释清楚,那它是个差的想法。
14. If the implementation is easy to explain, it may be a good idea.
如果一个实现很容易解释清楚,那它可能是个好的想法。
15. NameSpaces are one honking great idea -- let's do more of those!
@@ -68,12 +68,12 @@ PS 核心复杂度的说明讨论可以参见[《代码大全》](http://book
个人讨论
----------------------
每一个点都千锤百炼;每一点都有直指内心的感觉。
既有指明大是大非的理念,又有指导细节操作的准则。
既有谆谆教导的推荐,也有声色俱厉的禁止。
每一个点都千锤百炼;每一点都有直指内心的感觉。
看了N遍每遍会深思。
`Python`说得内容对生活个人觉得一样有指导性,果然是哲学。
@@ -81,7 +81,7 @@ PS 核心复杂度的说明讨论可以参见[《代码大全》](http://book
参考/阅读资料
----------------------
1. Python Philosophy原文 [http://www.c2.com/cgi/wiki?PythonPhilosophy](http://www.c2.com/cgi/wiki?PythonPhilosophy)
1. Python Philosophy原文及相关说明 [http://www.c2.com/cgi/wiki?PythonPhilosophy](http://www.c2.com/cgi/wiki?PythonPhilosophy)
1. [Python(programming language) - Wikipedia](http://en.wikipedia.org/wiki/Python_%28programming_language%29#Programming_philosophy)
1. [No programming language offers what Python does philosophically.](http://www.indicthreads.com/1062/no-programming-language-offers-what-python-does-philosophically/)
在编程哲学上Python超越了其它编程语言。