Declarative programming

Declarative programming is when we write code that describes what we want to achieve, rather than how to achieve it.

It’s a very blurry line, but generally, declarative programming focuses on the desired outcome, rather than the step-by-step instructions to get there.

This document is incomplete, because, to be honest, I think it is silly to differentiate programming languages this way.

flashcards

QuestionAnswer
What is declarative programming?Declarative programming is when we write code that describes what we want to achieve, rather than how to achieve it.
What does declarative programming focus on?Declarative programming focuses on the desired outcome, rather than the step-by-step instructions to get there.
According to the document, why might a distinction between declarative and imperative programming be considered incomplete?Because the author thinks it is silly to differentiate programming languages this way.