Your Awesome Guide to Declarative vs. Imperative Programming

With remarkable metaphors and scary-ass examples.

Arnold Abraham
Nerd For Tech

--

Background by starline via FreePik, adjusted by the Author

When you start learning to program, you are occupied learning the fundamentals. Keywords, variables, control statements, loops are important but not as much as learning how to convert real-life problems into code solutions.

This is a process every developer has to go through. My personal process started back in 2015 with C#.

Besides the mentioned obstacles, everyone must understand two programming paradigms: Imperative Programming and Declarative programming. Otherwise, you are just turning problems into code problems.

It might happen to you that you used both without knowing them exactly. Don’t feel ashamed by it. Give me 5 minutes, and you will feel enlighten and ready to go on.

Kickstart & My Best Metaphor

Imperative programming is a programming paradigm that uses statements that change a program’s state.

Declarative programming is a programming paradigm … that expresses the logic of a computation without describing its control flow.

My Best Metaphor

--

--

Arnold Abraham
Nerd For Tech

JavaScript, TypeScript and C#/.NET Tutorials/News/Best Practices by a German Software Engineer - Fun helps you to learn on the fly --> arnoldcode.com