Imperative and Dclarative Programming

Imperative. Think PHP programming language. You give command and tell the computer how to do things step-by-step. Is like a driving instructor teaching a person how to drive.

Declarative. Think SQL. You tell the database what you kind of result you want and don't care how the system do it. Is like asking a taxi driver to drive you to your destination.

No comments:

Post a Comment