Skip to main content

Questions tagged [declarative-programming]

A non-imperative style of building the structure and elements of computer programs that is concerned with what the program does over how it does it. Dealing with Query Languages, Reg Ex, logic, functionality and config systems.

16 votes
7 answers
9k views

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 ...
Loc's user avatar
  • 295
3 votes
5 answers
1k views

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 ...
Géry Ogam's user avatar
14 votes
6 answers
3k views

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 ...
NSjonas's user avatar
  • 267
3 votes
3 answers
250 views

I am not sure if I ever clearly understood standard corollary "what to solve" and "how to solve" used to point out difference between functional (declarative) and imperative programming paradigm ...
rahulaga-msft's user avatar
-1 votes
2 answers
204 views

The more declarative code is, the less explicit technical details it contains and the closer it gets to requirements expressed in domain language. In the extreme case, there is no more difference ...
Frank Puffer's user avatar
  • 6,459
11 votes
3 answers
5k views

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, ...
codebot's user avatar
  • 221
1 vote
1 answer
268 views

I'm trying to learn the language Inform 7 and its very odd programming model. Unfortunately I'm finding it hard to get my head around it because the language reads so much like natural English. I ...
Racheet's user avatar
  • 457
7 votes
1 answer
397 views

If I write the expression, if not (expr1 or expr2) then value I get the following warning from FSharpLint, In F# code, use 'e1 || e2' instead of 'e1 or e2'. Why is using || preferred over using or? ...
pluralMonad's user avatar
0 votes
2 answers
280 views

Let us consider a purely declarative language such as SQL, XQuery, or a logic language like Prolog, or a purely functional language without variable mutability. Considering that the interpreter or ...
csblo's user avatar
  • 229
3 votes
3 answers
624 views

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 ...
CPA's user avatar
  • 183
7 votes
1 answer
5k views

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 ...
QuadrupleA's user avatar
1 vote
2 answers
485 views

I am parsing many JSONs and DOMs in PHP. The problem is that the my knowledge about the structure of the JSON/DOM is mixed with code. For example, suppose that I have few sources of first and last ...
Mateusz Drost's user avatar
19 votes
5 answers
8k views

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" ...
ALXGTV's user avatar
  • 1,555
3 votes
2 answers
1k views

To understand what a query does, I have always thought the following is the procedure on evaluating a query: Form the table as specified in the FROM clause. Pick the rows from that table as specified ...
Utku's user avatar
  • 1,912
25 votes
9 answers
14k views

Why hasn't the dream of declarative programming been realized? What are some concrete obstacles getting in the way? For a simple example why can't I say sort(A) is defined by sort(A) in perm(A) &&...
user avatar

15 30 50 per page