Software engineer @avec_alan (opinions mine) | ex @Shopify | Tool Maker
| #SoftwareCraftsman
| C & Test lover
| Web Metamodernist
| Author of PicoTest, Colibri and Seaborg
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.
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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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!