Nibi's Tech7.1 WHAT PROGRAMMING REALLY IS
Programming is the process of giving instructions to a computer in a language it can understand so that it can perform specific tasks. These instructions must be precise, structured, and logical because computers do not interpret ambiguity the way humans do.
At its core, programming is not just about writing codeβit is about thinking in a structured and logical way. Every app, website, game, and AI system is built using programming.
When you use an app like WhatsApp or TikTok, you are interacting with millions of lines of code written by programmers who instructed computers on how to behave under different conditions.
Programming teaches you how to break problems into smaller steps and solve them systematically.
7.2 COMPUTATIONAL THINKING (THE FOUNDATION OF PROGRAMMING)
Before writing any code, programmers use a way of thinking called computational thinking. This is the ability to break down complex problems into smaller, manageable parts that a computer can solve.
Computational thinking involves four key ideas:
First is decomposition, which means breaking a big problem into smaller parts. For example, building a social media app can be broken into login systems, messaging systems, and profile management.
Second is pattern recognition, which involves identifying similarities in problems or data. For instance, noticing that many users perform similar actions in an app.
Third is abstraction, which means focusing only on important details and ignoring unnecessary information.
Fourth is algorithm design, which involves creating a step-by-step solution to a problem.
These thinking skills are more important than coding itself because they determine how well you understand and solve problems.
7.3 WHAT IS AN ALGORITHM?
An algorithm is a step-by-step set of instructions used to solve a problem or complete a task. Algorithms exist in everyday life even outside computers.
For example, a recipe for cooking rice is an algorithm:
In programming, algorithms are written in a more structured and precise way so that a computer can execute them without confusion.
A good algorithm must be:
If an algorithm is poorly designed, the program will not work correctly even if the code is correct.