Jump to content

3.1 Programming Paradigms

From Computer Science Knowledge Base

3.1 Programming Paradigms

Imagine you're building a house. There are many ways to build a house, right? You could follow a traditional blueprint, use pre-made sections that fit together, or even build it using eco-friendly materials and designs. Each of these is a different "style" or "approach" to building.

In the world of computer programming, there are also different styles or approaches to writing code, and these are called Programming Paradigms. A paradigm is basically a way of thinking about how to solve a problem with code and how to organize your instructions.

Just like different building styles have pros and cons, different programming paradigms are better for different types of problems. Let's look at some of the main ones: