DEV Community

Discussion on: So, how many of you respect CSS as a programming language?

Collapse
 
peerreynders profile image
peerreynders

MDN Web Docs Glossary:CSS:

A CSS rule is a set of properties associated with a selector.

Digging deeper...

Martin Fowler Bliki: RulesEngine:

A rules engine is all about providing an alternative computational model. Instead of the usual imperative model, which consists of commands in sequence with conditionals and loops ... rules, each of which has a condition and an action - simplistically you can think of it as a bunch of if-then statements.

i.e.:

  • Selector lists are conditions.
  • Property lists are actions.
  • Specificity and source order govern rule priority.

So in writing CSS you are composing rules for a domain specific rules engine which drives the visual design of the page - what is not to respect?

Collapse
 
starbist profile image
Silvestar Bistrović

Thank you for your answer. This isn't what I meant, but it is the most accurate answer, I think.

Collapse
 
ajxn profile image
Anders Jackson

Can you transfer a CSS program into a Turing machine? Is it eqvivalent to Turing programming language?

IF you can prove that, THEN CSS is a programming language.

Prolog is a logical declarative PROGRAMMING language, and Still are declarative.
Being declarative, as plain SQL also are, doesn't make it a programming language. As SQL neither are.

Does that mean that People that are skilled in CSS or SQL are worth less respect than those skillfull in Prolog or JavaScript?

Of course not.

The original question is made so it start this toxid thread.

CSS are not a programming language, and that is fine. And that doesn't make CSS not SQŁ less important.