DEV Community

Discussion on: Explain Declarative vs Imperative Programming like I'm 5

Collapse
 
deciduously profile image
Ben Lovy

If I'm understanding your question correctly, yes, Vue's internals use imperative code so that consumers of the tool are able to stick to declarative code. This is much like a database engine - the operations required to execute your SQL query are calculated by the database engine and invisible to the user, but will naturally be implemented inside the engine in an imperative fashion. Somewhere in the pipeline you will always need to imperatively tell the computer what to do.