What is the difference between declarative and imperative programming?
3 min read Both of these has its own up and down side, so it totally depends on use case and problem statement you want to solve. Declarative Popular one! As name suggests, it is more inclined towards declaration. Functional programming languages use declarative approach over imperative. Analogy: In team, mostly higher management participates in declaration of work, they don't much fall into the exact execution process. They just focus on " what work to be done! " Once understanding the definition of problem, outsource the work. Just focus on what you want, rather than how you want. Advantages: No complex object states Reusability No massive work on update Imperative Less popular! Analogy: Be (that) technical manager and do all work on your own instead of sharing it with other. Here you are more focus about " how work to be done! " Don't outsource your work, instead of it do all of it on your own. Advantages: Full con...