Differences between revisions 3 and 4
Revision 3 as of 2008-02-01 05:05:14
Size: 2561
Editor: yinjia
Comment:
Revision 4 as of 2008-02-01 11:24:44
Size: 1903
Editor: yinjia
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
  Python makes it easy to write software that can be understood, reused, and modified. It was deliberately designed to raise development quality expectations in the scripting world. Python's clear syntax and coherent design, for example, almost force programmers to write readable codea critical feature for software that may be changed or reused by others in the future.
Line 9: Line 10:
::

 . Python makes it easy to write software that can be understood, reused, and modified. It was deliberately designed to raise development quality expectations in the scripting world. Python's clear syntax and coherent design, for example, almost force programmers to write readable codea critical feature for software that may be changed or reused by others in the future. Of equal importance, because the Python language tries to do better, so too do Python developers and the Python community at large. In the Python world, one finds a refreshing focus on quality concepts such as simplicity, explicitness, and readabilityideas often given little more than a passing glance in some camps. (For more on this Python-inspired mindset, see the sidebar "[python3-CHP-1-SECT-8.html#python3-CHP-1-SIDEBAR-5 The Python 'Secret Handshake']," near the end of this chapter.) The Python language really does look like it was designed and not accumulated. It has an orthogonal, explicit, and minimalist design that makes code easy to understand and easy to predict. Python approaches complexity by providing a simple core language and splitting application-specific tools into a large set of modular library components. As a popular slogan attests, the result is that Python "fits your brain"it's possible to use the language without constantly flipping through reference manuals. This design makes Python ideal as a customization language for nonexperts. Perhaps most important is that by limiting the number of possible interactions in your code, Python reduces both program complexity and the potential for bugs. Besides being well designed, Python is also well tooled for modern software methodologies such as structured, modular, and object-oriented design, which allow code to be written once and reused many times. In fact, due to the inherent power and flexibility of the language, writing high-quality Python components that may be applied in multiple contexts is almost automatic.
  . 使用python编写可理解 可重用 易于改进软件比较容易
  使用Python编写可理解的可重用和 易于改进的软件比较容易。在脚本的世界里,从Python的出生那天就被期着承担提高开发质量的责任。Python清晰的语法和连贯的设计,比如强制程序员书写可读的代码,这些代码将来可能被其他人更改及重用。
  Of equal importance, because the Python language tries to do better, so too do Python developers and the Python community at large. In the Python world, one finds a refreshing focus on quality concepts such as simplicity, explicitness, and readabilityideas often given little more than a passing glance in some camps. (For more on this Python-inspired mindset, see the sidebar "The Python 'Secret Handshake'," near the end of this chapter.)
  同样重要的是,因为Python试着做的更好,正如在Python社区和Python的程序员尝试去做的那样。在Python的世界里,找到一个令人神清气爽的焦点在质量概念,如简单,清晰,和可读性 经常让一些comps人命短暂的一瞥更多的

In the Preface, I mentioned that Python emphasizes concepts such as quality, productivity, portability, and integration. Since these four terms summarize most of the reasons for using Python, I'd like to define them in a bit more detail.

我在序言里提到,python强调诸如 质量,生产力,移植和综合等概念。既然这四个术语概括了实用python的原因,我很乐意把它们定义的更详细一些。

Software quality

软件质量

  • Python makes it easy to write software that can be understood, reused, and modified. It was deliberately designed to raise development quality expectations in the scripting world. Python's clear syntax and coherent design, for example, almost force programmers to write readable codea critical feature for software that may be changed or reused by others in the future. 使用Python编写可理解的可重用和 易于改进的软件比较容易。在脚本的世界里,从Python的出生那天就被期着承担提高开发质量的责任。Python清晰的语法和连贯的设计,比如强制程序员书写可读的代码,这些代码将来可能被其他人更改及重用。 Of equal importance, because the Python language tries to do better, so too do Python developers and the Python community at large. In the Python world, one finds a refreshing focus on quality concepts such as simplicity, explicitness, and readabilityideas often given little more than a passing glance in some camps. (For more on this Python-inspired mindset, see the sidebar "The Python 'Secret Handshake'," near the end of this chapter.) 同样重要的是,因为Python试着做的更好,正如在Python社区和Python的程序员尝试去做的那样。在Python的世界里,找到一个令人神清气爽的焦点在质量概念,如简单,清晰,和可读性 经常让一些comps人命短暂的一瞥更多的

PP3eD/Ch-1-2 (last edited 2009-12-25 07:14:26 by localhost)