Search results
Results from the WOW.Com Content Network
In computer science, declarative programming is a programming paradigm—a style of building the structure and elements of computer programs—that expresses the logic of a computation without describing its control flow.
Declarative programming is when you write your code in such a way that it describes what you want to do, and not how you want to do it. It is left up to the compiler to figure out the how. Examples of declarative programming languages are SQL and Prolog.
Declarative programming is a high-level programming concept, which is the opposite of imperative programming. It is a programming approach in which coders write code that describes what they want to do and what results they want to achieve, rather than how they will achieve the results.
In contrast with imperative programming, declarative programming describes what you want the program to achieve rather than how it should run. In other words, within the declarative paradigm, you define the results you want a program to accomplish without describing its control flow.
In declarative programming, the system optimizes the code based on the rules and constraints specified by the programmer. In imperative programming, variables can be mutable. In declarative programming, variables are typically immutable.
Declarative programming is a programming paradigm that emphasizes the use of declarative statements to describe the logic of a program. In other words, instead of writing code that explicitly tells the computer how to perform a task, you write code that describes the desired outcome of that task.
Declarative Programming = calling a function. Imperative Programming = defining a function. Really, that's what it is. In short and simple terms, declarative programming is calling some abstracted pre-defined function that someone else programmed. Take a look at the top-rated answer:
Declarative programming is a paradigm that expresses the desired result, not how to achieve it. It uses rules and constraints to describe a user interface, the layout of a network, the structure of a document, or a language parser.
What is declarative programming? Declarative programming is a style of coding where developers express computation logic without the need to program the control flow of individual processes.
Declarative programming is a programming paradigm in which the focus is on describing the desired outcomes or goals rather than detailing the specific steps to achieve them.