Declarative Programming
noun
say it: “dih-KLAIR-uh-tiv PROH-gram-ing” /dɪˈklærətɪv ˈproʊɡræmɪŋ/
Describing the result you want and letting the system work out the steps, as SQL and HTML do.
What is Declarative Programming?
Declarative Programming — Saying what you want and letting the system work out the steps. SQL says which rows you want, not how to find them; an HTML onclick attribute says what runs on a click, and the browser wires it up.
<button onclick="addToCart(7)">Add to cart</button>
In a sentence
- “SQL is declarative programming: we say which rows we want, not how to find them.”
Level: Journeyman · More Software Development terms at this level
Updated