Imperative programming (from the Latin imperare = to command) is the oldest programming paradigm. According to this paradigm, a program consists of a clearly defined sequence of instructions given to a computer.
The source code of imperative languages brings together the commands that determine what the computer must do, and when, to achieve the desired result. The values used in the variables are changed during program runtime. To control commands, control structures such as loops or branches are integrated into the code.
The source code of imperative languages brings together the commands that determine what the computer must do, and when, to achieve the desired result. The values used in the variables are changed during program runtime. To control commands, control structures such as loops or branches are integrated into the code.
La programmazione imperativa (dal latino imperare = comandare) è il più antico paradigma di programmazione. Secondo questo paradigma, un programma consiste in una sequenza chiaramente definita di istruzioni date a un computer.
Il codice sorgente dei linguaggi imperativi mette insieme i comandi che determinano cosa deve essere fatto dal computer, e quando, per raggiungere il risultato desiderato. I valori utilizzati nelle variabili vengono modificati durante il runtime del programma. Per controllare i comandi, vengono integrate nel codice strutture di controllo come loop o rami.
The alternative to the imperative paradigm is the "declarative" paradigm, whose key difference is that, unlike "imperative" programming which focuses on the HOW, "declarative" programming focuses on the WHAT. Unlike imperative programming languages, which are written as a step-by-step guide (HOW) for the computer, in declarative programming, the desired end result (WHAT) is directly described. Using a culinary metaphor, we can say that imperative languages are similar to recipes, while declarative languages are similar to an explanatory photo of the dish already prepared.
L'alternativa al paradigma imperativo è rappresentato dal paradigma "dichiarativo", la cui differenza fondamentale consiste nel fatto che, a differenza della programmazione "imperativa" che si concentra sul COME, la programmazione "dichiarativa" si concentra sul COSA. A differenza dei linguaggi di programmazione imperativi, che sono scritti come una guida passo passo (COME) per il computer, nella programmazione dichiarativa, viene descritto direttamente il risultato finale desiderato (COSA). Utilizzando una metafora culinaria, possiamo affermare che i linguaggi imperativi sono assimilabili alle ricette, mentre i linguaggi dichiarativi sono assimilabili ad una foto esplicativa della pietanza già preparata.
Hashtag keywords: #computerScience #imperativeProgramming #functionalProgramming #softwareDevelopment #TILLL #TateoBlog
Extract from: The imperative era is now nearing its end, TILLL-Learning.
_______________________________________
Tateo’s Interdisciplinary Lifelong Learning Project
T I L L L
LEARNING - SHARING - NETWORKING
Learning, knowledge sharing and communities engagement about:
Artificial Intelligence; Augmented, Virtual and Mixed Reality; Automation; Electronics; Computer Science and Information Technology; Mobile Technologies; Problem Solving; Readings; Social Media; Modeling and Simulation; Artificial Vision; Hard and Soft Work Skills.
by Tateo Giovanni Battista
_______________________________________
T I L L L
LEARNING - SHARING - NETWORKING
Learning, knowledge sharing and communities engagement about:
Artificial Intelligence; Augmented, Virtual and Mixed Reality; Automation; Electronics; Computer Science and Information Technology; Mobile Technologies; Problem Solving; Readings; Social Media; Modeling and Simulation; Artificial Vision; Hard and Soft Work Skills.
by Tateo Giovanni Battista
_______________________________________
TILLL~Blog © January 21, 2022
Commenti
Posta un commento