官术网_书友最值得收藏!

Declarative programming

Declarative programming is a paradigm focused on describing a program's logic instead of particular executional steps. In other words, in declarative programming, we define what we want instead of how we want it. In contrast to imperative programming, programs in declarative programming are defined with expressions instead of statements.

Very common examples could be SQL and HTML languages. Consider the following database query:

SELECT * FROM user WHERE id = 42 

In SQL, we define what data from what table we want to query, but the implementation details are completely hidden for us. We don't even want to worry about how the database engine stores or indexes the data.

In HTML, we define the structure of elements; what's behind the browser's rendering process isn't important for us. We just want to see the page on the screen.

主站蜘蛛池模板: 陆良县| 镇沅| 许昌县| 武义县| 额济纳旗| 开平市| 陕西省| 闽侯县| 始兴县| 上蔡县| 三明市| 北流市| 丽江市| 长海县| 曲水县| 蒙城县| 石柱| 读书| 来宾市| 眉山市| 龙游县| 台中县| 伊金霍洛旗| 蛟河市| 郴州市| 沈阳市| 兰溪市| 安图县| 明水县| 东乌珠穆沁旗| 上杭县| 湾仔区| 阜城县| 麟游县| 襄汾县| 杭锦旗| 宣恩县| 灵武市| 福安市| 临洮县| 龙游县|