DEV Community

loading...

Discussion on: What the Heck is Declarative Programming, Anyways?

Collapse
fredericbonnet profile image
Frédéric Bonnet

Nice article. Just a remark though, I think CSS would be a better illustration of declarative programming than SQL, after all with SQL you're executing a statement so it's still a little bit imperative (and you can have side effects with UPDATE statements too), whereas in CSS you can only write rules.

Collapse
brewsterbhg profile image
Keith Brewster Author

That's a totally valid point, CSS is definitely a better example of a declarative language. I actually did go back and forth on which one to include. Thanks for the input!