![imperative programming language list imperative programming language list](https://d3i71xaburhd42.cloudfront.net/411a63eccd6e39f34d90bed75932910cfa1a929a/2-Figure1-1.png)
An abstraction is about stripping away the nitty gritty details in order to talk about a higher-level concept. It's all about AbstractionĪs programmers, we hear the word "abstraction" a lot. I know that if I give you inputs in the form of money, I will get the desired outputs. Simple right? In this declarative program, I have told you the outputs that I want.
![imperative programming language list imperative programming language list](https://image.slidesharecdn.com/funtionalprogrammingmaster-150830110643-lva1-app6891/95/funtional-programming-15-638.jpg)
Building a House "Declaratively"ĭeclarative is about the WHAT. In this imperative program, I have told you the exact steps to take in order to build the house (okay, not so detailed, but you get it!). For example, if I was writing an imperative program for building a house, it would go something like this: Imperative programming is about how a program works while Declarative programming is about what a program does. The difference between Imperative and Declarative programming is related to how a program works vs. The diagram above doesn't make sense yet especially because Object-Oriented Programming (OOP) is listed under both categories! A High Level Explanation The TermsĪll five of these terms are considered "programming paradigms", although Imperative and Declarative paradigms are parent hierarchies to procedural, object-oriented, and functional programming.
![imperative programming language list imperative programming language list](https://datacadamia.com/_media/code/fp/imperative_vs_functional.jpg)
Imperative programming language list code#
By understanding these five terms, while reading code libraries, you will begin to see where the authors got their code designs. In my mind, knowing the difference between imperative and declarative programming is useful for a single reason, and that is to help you better understand the difference between procedural, functional, and object-oriented programming styles. Maybe you're reading a textbook for school.Įventually, you get annoyed reading the terms "declarative" and "imperative" because you know they are important but have no clue why. Maybe you heard it in an Object Oriented Programming book. Photo by Daniel McCullough on Unsplash Why You Should Care About this Question