Computer science and its programming language.

Compiled vs Interpreted Language vs Declarative lang

In computer science, declarative programming is a programming paradigm—a style of building the structure and elements of computer programs.

Example of Declarative Lang: 

“Hm. I notice you forgot something.” Or “I wonder if there’s something you need for school today.” In this exampledeclarative language reframes the prompt, inviting the individual to hear the mental cue that is driving you towards the solution.

Pros and Cons of Declarative Lang:

AdvantagesDisadvantages
Short, efficient codeSometimes hard to understand for external people
Can be implemented using methods not yet known at the time of programmingBased on an unfamiliar conceptual model for people (solution state)
Easy optimization as implementation is controlled by an algorithmHard to take characteristics of individual applications into account during programming
Maintenance possible independent of application development