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.

0 votes
0 answers
152 views

Is This Programming Paradigm New? [closed]

preface: to define what a programming paradigm is in context of this post, I will use the definition used in wikipedia A programming paradigm is a relatively high-level way to conceptualize and ...
vikingosegundo's user avatar
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 ...
Loc's user avatar
  • 295
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 ...
Géry Ogam's user avatar
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 ...
NSjonas's user avatar
  • 267
3 votes
3 answers
236 views

Precisely define "what to solve" and "how to solve" corollary in functional and imperative programming respectively

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
182 views

Are executable requirements the most advanced form of declarative code?

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

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

Is there an EBNF form for Inform 7

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
379 views

Why does FSharpLint suggest, "In F# code, use 'e1 || e2' instead of 'e1 or e2'"

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
246 views

Can a purely declarative language cause runtime exceptions?

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
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 ...
CPA's user avatar
  • 183
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 ...
QuadrupleA's user avatar
1 vote
2 answers
465 views

Declarative parser for JSON and DOM

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

How to infer the result of a query?

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

15 30 50 per page