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.

0votes
0answers
141views

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
16votes
7answers
9kviews

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
3votes
5answers
919views

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
14votes
6answers
3kviews

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
3votes
3answers
236views

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
-1votes
2answers
182views

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
11votes
3answers
5kviews

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
1vote
1answer
254views

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
7votes
1answer
379views

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
0votes
2answers
246views

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
3votes
3answers
590views

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
7votes
2answers
4kviews

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
1vote
2answers
465views

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
19votes
5answers
7kviews

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
3votes
2answers
1kviews

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

153050per page
close