What are Programming Paradigms?

1. What are Programming Paradigms?

Welcome to the course! Together, we are going to be learning about different programming paradigms and applying what we learn by writing simple programs in each paradigm using Python. Let's get started!

2. What is a paradigm?

First, let's cover some basic definitions. Before we can understand programming paradigms, we need to talk about what we mean by "paradigm". A paradigm is a standard, a perspective, or a set of ideas for operating. A paradigm is a way of thinking about a topic or approaching a problem. Consider an example of paradigms from science: previously we used to think the Earth was flat. Eventually, we discovered that the Earth was round. This is an example of shifting between paradigms.

3. What is a programming paradigm?

A computer program is a set of written instructions to tell a computer what to do, and programming is the act of writing these programs. In programming, a paradigm is a style or a way of approaching writing computer programs. Programming paradigms can be used to classify programs based on their features. It can include specific patterns to follow when writing code, and different programming paradigms are suited for different tasks that we might wish to accomplish with our code. For instance, being able to write code that can be used repeatedly in different contexts is important, and each paradigm handles this a bit differently. Some examples of programming paradigms that we will cover in this course include procedural programming, functional programming, and object-oriented programming.

4. What is a programming language?

The concept of programming paradigms is closely related to the concept of programming languages, but they are not the same thing. While a programming paradigm is a set of characteristics associated with a style of programming, a programming language is a specific system of notation for writing programs. Some examples of programming languages are Python, Java, Scala, and C++. We will only be using Python in this course.

5. Programming paradigms vs. programming languages

It's important to keep in mind that the same programming paradigm can be followed in more than one language. Since a programming paradigm is a style of programming, it is always possible for new languages to come out that use that same style. On the flip side, it is also possible for one programming language to implement multiple programming paradigms. This would mean that the elements from different programming paradigms are present in the same language. For example, the Python language can be used for all three of the top programming paradigms (procedural, functional, and object-oriented) because it includes procedures, functions, and objects.

6. Let's practice!

Great! Now let's take what we've learned in this video into the exercises and make sure we've got our understanding of programming paradigms down.