declarativecode

noun
UK /dɪˈklærətɪv kəʊd/
US /dɪˈklærətɪv koʊd/

Declarative code is code that tells the computer what you want, not every little step to do.

In declarative code, you just say the button should be blue, and the computer figures out how.


OTHER MEANINGS

2. Code written in a style where you describe the desired result rather than the steps to reach it.

CSS is declarative code because you describe how a page should look.

3. A way of writing programs that focuses on logic and rules instead of control flow.

The team switched to declarative code to make their app easier to read.

4. Instructions that state facts or conditions, letting the system decide how to act on them.

The firewall uses declarative code to list which connections are allowed.