All Questions
Tagged with declarative-programming imperative-programming
8 questions
16
votes
7
answers
9k
views
Is declarative programming just imperative programming 'under the hood'?
From my understanding, in declarative programming, programmer only need to define the end result, but not how to compute it. But for execute that said function, the function must be pre-defined by the ...
3
votes
5
answers
919
views
Is assignment declarative or imperative?
On Wikipedia, the article Programming paradigms defines
declarative as a paradigm in which the programmer merely declares properties of the desired result, but not how to compute it;
imperative as a ...
14
votes
6
answers
3k
views
Is "Low Code" declarative by default?
Something that has really be getting under my skin recently is that Salesforce uses the term "Declarative Development" to mean "Low Code" or "visual code".
For example, this article explains the ...
11
votes
3
answers
5k
views
Do functional programming languages disallow side effects?
According to Wikipedia, Functional programming languages, that are Declarative, they disallow side effects. Declarative programming in general, attempts to minimize or eliminate side effects.
Also, ...
3
votes
3
answers
590
views
Declarative programming for deterministic real time control
Let's say you want control a motor in real time. Normally you would use a microcontroller or PC with e.g. c-programming language. So you would use an imperative approach. You tell the microcontroller ...
7
votes
2
answers
4k
views
Is declarative programming overrated? [closed]
I've been programming for years with primarily-imperative languages (C++, C#, javascript, python), but have recently experimented with some functional langauges (Lisp, Haskell) and was excited to try ...
19
votes
5
answers
7k
views
What makes functional programming languages declarative as opposed to Imperative?
On many articles, describing the benefits of functional programming, I have seen functional programming languages, such as Haskell, ML, Scala or Clojure, referred to as "declarative languages" ...
1
vote
1
answer
1k
views
Mixing declarative & imperative code (Implicit 'unit tests' ?) [closed]
Well I'm no expert, but as a student, I'm curious about languages and their design patterns / goals.
I'd like to know, whether there are any points I miss in the following examples, and why ...