Declarative Programming

Learn about declarative programming.

What is declarative programming?

To understand what declarative programming is, we can compare it to something we know, and that is imperative programming. In imperative programming, we focus on describing how something will be done. In declarative programming, on the other hand, the focus is on what we want to achieve.

To understand this, we’ll look at some real-world examples. If you go to a restaurant, you can either be an imperative or declarative guest.

Get hands-on with 1200+ tech skills courses.