declarative coding
nounDeclarative coding is a way of writing computer programs where you say what you want to happen instead of listing every step to make it happen.
Using declarative coding, she described the webpage layout and let the framework figure out how to build it.
SYNONYMS
RELATED WORDS
OTHER MEANINGS
2. A style of coding in which you describe the desired end result and the system decides the execution steps.
In declarative coding, you write a query that says which rows you want, not how to loop through the table.
3. Writing code that focuses on rules and constraints rather than on control flow.
The game's rules were written in declarative coding, so the engine handled all the movement logic.
4. An approach to programming often contrasted with imperative coding, emphasizing readability and intent.
The team switched to declarative coding to make their infrastructure scripts easier to review.