loading...

re: Explain Declarative vs Imperative Programming like I'm 5 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: SQL is declarative. You tell SQL your intention: "I want to fetch all users living in Berlin drinking coffee". How to best implement this? Th...
 

If

SQL is declarative. You tell SQL your intention

Then ORMs are "Imperative"?

 

Nope, ORM are just a convenience wrapper to make SQL easier to use in your programming language, but apart from them pretty much the same.

If you were to create your own logic on how to fetch efficiently all users living in Berlin, that would be imperative.

Code of Conduct Report abuse