命令式编程明确塑造了您的思维方式。
许多命令式控制依赖破坏性赋值进行迭代。
Many imperative control structures rely on destructive assignment to do iteration.
满足该要求的命令式分类如清单1所示。
An imperative class that meets these requirements appears in Listing 1.
它们提供了命令式语言通常不提供的一些工具。
They provide some tools that imperative languages usually don't.
清单1展示了用命令式风格编写的数字分类器。
Listing 1 shows the number classifier written in an imperative style.
表1显示了几种常见的命令式或声明式编程语言。
Table 1 shows several common programming languages categorized as either imperative or declarative.
命令式编程的用户对赋值的依赖要超过其他编程技术。
Users of imperative languages rely on assignments more than any other programming technique.
经验7.可以用说明式的或命令式的方式表示转换。
Lesson 7. Transformations can be expressed declaratively or imperatively.
一般来说,当描述复杂的转换时,命令式的方法更适合。
In general, the imperative approach is more adaptable when describing complex transformations.Figure 7: a pattern of model elements in a reference model.
在命令式编程语言中,我们必须在算法中考虑每个原子步骤。
In imperative programming languages, I must think about each atomic step in my algorithm.
命令式编程和声明式编程方法之间的一个关键差异是完整性。
One critical difference between imperative and declarative programming methodologies is the notion of completeness.
在命令式语言中,输入相同而可能返回不同值的方法,都有副作用。
In imperative languages, any method that can possibly return different values, given the same input, has side effects.
命令式的(特别是)面向对象编程风格采用结构和消息传递作为构建块。
The imperative (and especially) object-oriented programming style uses structure and messaging as building blocks.
声明性编程样式在声明约束方面几乎一直比命令式或过程序样式更直接。
A declarative programming style is almost always a more direct way of stating constraints than is an imperative or procedural one.
不太久之前编程语言还可以毫无疑义地归类成“命令式”或者“函数式”。
Until relatively recently programming languages have fit neatly into either "imperative" or "functional" categories.
函数为流程构建了功能模块,并具有传统命令式语言中所不具有的一些功能。
Functions form the building blocks for processing and are imbued with several features not found in traditional imperative languages.
命令式的并行处理是基于并行版本的Do、For和For -Each操作。
Imperative parallelism is based on parallel versions of Do, For, and For-Each.
尽管如此,对命令式语言程序员来说,状态的改变依然是程序设计错误的主要原因。
Still, state changes are consistently one of the chief causes for programming errors for imperative programmers.
这种命令式的绘图模型更类似于opengl风格的绘制,而不是声明性的Web。
This model of imperative graphics owes much more to OpenGL-style drawing than to the declarative Web.
Ocaml被选中的一部分原因是,它支持函数式、命令式和面向对象的混合编程风格。
OCaml as was chosen a basis in part because it supports a mix of functional, imperative, and object-oriented programming styles.
实际上,如果对转换进行良好的文档记录,甚至可以在配置中混合声明式语句和命令式语句。
In fact, if the transformation is well documented, you can even mix declarative and imperative statements within your configuration.
许多使用其他的程序设计语言范型的语言,例如面向对象的、命令式的,等等,也是动态语言。
Many languages using other programming language paradigms, such as object-oriented, imperative, and so on, are also dynamic languages.
如果您和大多数程序员一样,那么您一定是从像 C++ 的命令式语言开始您的编程生涯的。
If you're like most programmers, you started your career with an imperative language like C++.
这些公司从命令式(手工的)操作转换为声明服务器所需要的最终状态,从而达到可扩展的运维。
These companies achieve scalable operations by shifting from imperative (manual) actions to declarations about the desired end state of a server.
函数式编程为您提供了新的、不同的构建块,可以实现命令式语言使用其他机制实现的相同效果。
Functional programming gives you new, different building blocks to achieve the same goals that imperative languages accomplish with other mechanisms.
命令式编程由一系列带有明确顺序的语句构成,它们的算法和编程构造严重依赖于应用程序的状态。
Imperative programs are formed by a sequence of statements with an explicit order, and their algorithms and programming constructs rely heavily on application state.
函数编程方式很容易理解,但是如果您习惯了过程序和关注状态的命令式语言,可能不太容易适应它。
The functional programming approach is easy to understand, but can be difficult to apply if you are used to the more procedural and state-focused imperative languages.
一旦你习惯了新的绑定、触发器及动画支持,你就很难回到老风格命令式的、事件驱动的UI编程方法。
Once you get used to the new bind, trigger and animation support, it is hard to go back to the old style of imperative, event-driven UI programming.
最受欢迎的通用编程语言(包括Python和其它面向对象的语言)在样式上绝大多数都是命令式的。
The most popular general purpose programming languages -- including Python and other object-oriented languages -- are predominantly imperative in style.
应用推荐