October 2019
Intermediate to advanced
434 pages
11h 54m
English
Declarative programming is a programming paradigm in which the goal or outcome is defined without describing the implementation details of how to achieve the outcome.
It is a bit more abstract in its definition and in examples. While imperative code very explicitly defines how to calculate an outcome, declarative code omits those implementation details and instead favors what should be performed or calculated.
Database query languages such as SQL are a good example of this. In the following example SQL snippet, you see the desired outcome is defined by selecting all records from the ProgrammingLanguages table where the Target field equals JVM. The following code shows this:
/* Selects all programming languages ...
Read now
Unlock full access