1.prototype and patch: A development plan that involves writing a rough draft of a program,
testing, and correcting errors as they are found.
原型和补丁模式:一种开发模式,先写一个程序的草稿,然后测试,再改正发现的错误,这样逐步演化的开发模式。
2.designed development: A development plan that involves high-level insight into the problem
and more planning than incremental development or prototype development.
设计规划开发:这种开发模式要求对所面对问题的高程度的深刻理解,相比渐进式开发和原型增补模式要更具有计划性。
pure function: A function that does not modify any of the objects it receives as arguments.
Most pure functions are fruitful.
纯函数:不修改参数对象的函数。这种函数多数是有返回值的函数。
3.modifier: A function that changes one or more of the objects it receives as arguments. Most
modifiers are void; that is, they return None.
修改器:修改参数对象的函数。大多数这样的函数都是无返回值的,也就是返回的都是None 。
4.functional programming style: A style of program design in which the majority of functions
are pure.
函数式编程模式:一种程序设计模式,主要特征为大多数函数都是纯函数。
5.invariant: A condition that should always be true during the execution of a program.
约束条件:在程序运行过程中,应该一直为真的条件。
6.assert statement: A statement that check a condition and raises an exception if it fails.
assert 语句:一种检查错误的语句,检查一个条件ÿ