Overview of Delcarative Languages
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
- Comparison between Compiled Language, Interpreted Language and Declarative Language
A. compiled language is a programming language whose implementations are compilers and not interpeters.(Example-Java, C)
B. An Interpreted language is a programming languagr which are generally interpreted, without compiling a program into machine instructions.(Example-Python)
C. Declarative programming is a programming in which the programmer defines what needs to be accomplished by the program without defining how it needs to be implemented. (Example-SQL,JSON,YAML)
2. Example of Declarative Languages
example of declarative languages are SQL, Haskell, JSON, YAML.
3. Pros and Cons of Declarative Languages
Pros
-Declarative languages are short and efficient code.
– Easy optimization as implementation is controlled by an algorithm.
Cons
-Sometimes hard to understand for external people.
-Based on an unfamiliar conceptual model for people.