Declarative Languages Ruling the Cloud Environment

So, How does Declarative Language differ from compiled and interpreted language?

Declarative languages, also called nonprocedural or very high level, are programming languages in which (ideally) a program specifies what is to be done rather than how to do it. In such languages there is less difference between the specification of a program and its implementation than in the procedural languages described so far. Where as a compiled language is a programming language which are generally compiled and an interpreted language is a programming language which are generally interpreted, without compiling a program into machine instructions.

Some Examples Of Declarative Languages

  1. Yaml
  2. Json
  3. XSL

Pros and Cons Of Declarative Language

Pros

  1. Short, efficient code
  2. Can be implemented using methods not yet known at the time of programming
  3. Easy optimization as implementation is controlled by an algorithm
  4. Maintenance possible independent of application development

Cons

  1. Sometimes hard to understand for external people
  2. Based on an unfamiliar conceptual model for people (solution state)
  3. Hard to take characteristics of individual applications into account during programming