javascript-html5-tutorial.com - javascript-html5-tutorial.com - Plugins, scripts, tools and advice for software developers, programming JavaScript, AJAX, HTML5,

Description: Plugins, scripts, tools and advice for software developers, programming JavaScript, AJAX, HTML5, Vue.js, React JS, mobile and web development, tutorials, articles, projects

Example domain paragraphs

Today… a small article about the approach to writing code. Do you write your JS code declaratively, or rather imperatively? It’s good to take a look closer. Similarly to approaches of writing and organizing CSS styles.

Declarative programming is a programming paradigm — an approach to building the structure and elements of computer programs, which expresses the logic of calculations without describing its control flow. In contrast to programs written imperatively, the programmer describes the conditions, that the final solution must meet (what we want to achieve), and not the detailed sequence of steps that lead to it (how to do it).

Many languages, that use a declarative approach, tries to minimize or eliminate side effects, describing what the program must do in their field of domains, instead of describing how to achieve this as a sequence of programming language primitives. In turn, in imperative approach we implement algorithms in clear steps.

Links to javascript-html5-tutorial.com (1)