IMPERATIVE PROGRAMMING(命令式、指令式编程)
看手册的同时学一下英语,还挺不错的!
原文:
Imperative programming
Imperative programming
is a programming paradigm
that describes computation in terms of statements that changes the state of the machine. For example, the statement x = x +1
changes the state of the memory location of x by adding 1 to the existing value of x.
Procedural programming
describes an imperative programming model where a program consists of one or more procedures, each of which contains statements that changes the state of the program.
Imperative programming indicates
that programming language constructs are fairly close to the machine. The earliest imperative languages were the machine languages
that were used to program computers.
Machines languages were hard to code and debug. Over time
, high level languages were developed to make the programming process easier. For high level languages, compilers had to be developed so that it takes high level code and translate into machine code that can be executed directly on machines hardware.
All programs must eventually
be executed at the machine level. Many other paradigms such as object oriented programming
and functional programming were developed to make the programming process more structured and correct. However, all programs must eventually be converted into machine instructions
.
参考生词:
Imperative programming
:命令式编程
paradigm
:规范
Procedural programming
:过程程序设计
indicates
:表明
machine languages
:机器语言
Over time
:久而久之
eventually
:最终
object oriented programming
:面向对象程序设计
instructions
:指令