DEV Community

Cover image for What the Heck is Declarative Programming, Anyways?

What the Heck is Declarative Programming, Anyways?

Keith Brewster on August 13, 2019

Chances are—at some point in time—you've heard someone bring up the concept of declarative programming. Maybe it was in a Medium article, or maybe ...
Collapse
 
phizzard profile image
Phil Tietjen

Very refreshing having a digestible info dump on a programming methodology rather than just hearing it as if it's a buzzword.

The 🐙 loop was a very simple but effective way to understand the differences between WHAT and HOW.

Look forward to your future article on functional Programming that's being foreshadowed!

Collapse
 
brewsterbhg profile image
Keith Brewster

Thanks Phil! Maybe this time I won't have 5 months between blog posts.

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

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!