Selfnotes-Declarative lang
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
1.Diff between Compiled Lang Vs Interpreted Lang Vs Declarative Lang?
Compiler Lang : A compiled lang is a programming lang whose implementations are typically compilers (translators that generate machine code from source code), and not interpreters (step-by-step executors of source code, where no pre-runtime translation takes place).
Interpreted lang : Interpreted lang is a programming lang which are generally interpreted, without compiling a program into machine instructions. It is one where the instructions are not directly executed by the target machine, but instead read and executed by some other program.
Declarative lang : also called nonprocedural or very high level, are programming lang in which (ideally) a program specifies what is to be done rather than how to do it.
2.Example of Declarative Lang?
SQL and Prolog
3.Pros and Cons of Declarative Lang?
pros : Short, efficient code
cons : Sometimes hard to understand for external people