![imperative programming language list imperative programming language list](https://image.slidesharecdn.com/highlevellanguages-161231182707/95/high-level-languages-imperative-object-orientated-declarative-6-638.jpg)
You should analyze the code to see what this code does, as if you were an interpreter. If you have tons of such elements, it can be pretty hard to understand what’s going on in the code at first sight. Then, according to the received info, we performed a particular action. Here’s the code example:Īs you can see, we’ve used the if statement to check what’s currently rendered on the screen. Thus, we have to check the current state of the component and manipulate it. According to the imperative paradigm, we have to know how we want to do it.
![imperative programming language list imperative programming language list](https://1.bp.blogspot.com/-CMzeFNCucIY/XGacMcMkMZI/AAAAAAAAA2Y/9-nmcv8xazUjeOC6nAqEfBQ0le6omuLWQCLcBGAs/s1600/slide_3.jpg)
Imagine that we want to change the color of a button after a user clicks it. To better understand how this paradigm works, let’s take a look at a small example. If you want to check whether some condition is met before performing some actions, you can use conditional branching statements. The wide use of looping statements allows executing sequences of statements. In imperative programming, you use assignment statements to locate some information in memory to use it later.
![imperative programming language list imperative programming language list](https://datacadamia.com/_media/code/fp/imperative_vs_functional.jpg)
For this purpose, we use statements that can change the current state of the application. So, what is imperative programming? The shortest way to answer this question is to say that by using the imperative programming language we try to say HOW we want to do something. So, it can be hard to identify the list of strict rules that we can use to define what paradigm this or that language falls into.Ĭheck our latest articles: Real-time Firebase apps and Cross-platform Electron applications. Some languages relate to only one paradigm, others – to multiple paradigms. A paradigm can be concerned with the way the code is organized or with the style of syntax and grammar. By the paradigm in this case we mean a class of programming languages that is formed according to the style of programming. We’ll check the main features of both of them and try to understand what pros and cons they have.ĭifferent approaches to the development process tend to establish programming paradigms. In this article we’ll concentrate on two of the existing programming paradigms: Imperative programming and Declarative programming.