All programming adopted divided into two main types:
Declarative. Imperative. Declarative programming - a term with two different values. Under the first definition, the program "declarative" if it describes something rather than create it.For example, web pages in HTML declarative because they describe what should contain a page and not as a display page on the screen. This approach is different from imperative programming languages that require the programmer to specify the algorithm for execution.
According to the second definition, the program "declarative" if it is written in purely functional, logical or constant programming language.
Imperatvne programming - programming paradigm under which describes the process of obtaining results as a sequence of instructions changes the state of the program. Just as with prescriptive method in linguistics lists what sequence of actions that need to complete mandatory program is a sequence of operations for the computer.
Programming paradigm - a way of thinking developer. Programming language can support or not support a particular paradigm. In the first case of paradigm is convenient, that is simple, safe and effective. We consider three basic imperative paradigms - procedural, object (module) and object-oriented (hierarchical) programming.
No comments:
Post a Comment