Answer the question
In order to leave comments, you need to log in
What is the difference between procedural programming and imperative programming?
The descriptions of the two styles are very similar. Or is it the same thing?
Answer the question
In order to leave comments, you need to log in
There is a procedure: before asking a question, google yourself.
There is an imperative: google before asking such questions.
Since neither is done, there is no difference.
With an imperative approach , you can assume that you have an executor at your disposal who understands a certain set of commands. It can dig, it can not dig, it can branch, loop, assign, call, etc.
The imperative approach is often contrasted with the declarative one . You don't say what the performer should do. Instead, the desired result is described (declared). As a rule, the declarative approach is more high-level. For example, when composing SQL queries, we do not tell the DBMS how to get the result (as a rule). These are implementation details that we don't care about.
Compare, for example, two approaches to infrastructure management:
and
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question