Blog

Introduction to Programming

I bet you have seen images like the one below in a lot of movies like Matrix featuring most computer gurus sitting behind a desk full of computer monitors with their fingers whizzing on the keyboard, then, whenever you hear the word programming or coding, your mind quickly pictures one of those scenes and you say "well, programming is being very fast on the computer", hold on tight, that is so wrong.


What is Programming

Programming is simply defined as the process of giving instructions to the computer system in order for it to complete a specific task. It is the same process as telling the computer to calculate the addition of two numbers and coding the largest gaming software the world has ever seen.
What are the things you need to know when we talk of programming?


1. Algorithm

An algorithm is a set of guidelines that describes how to perform a task. This basically means the step-by-step instruction you give to the computer to complete a given task. Algorithm is not the real computer code but it is the set of procedures that you will follow to successfully write your first program. You can think of algorithms as cooking recipes to cooking your most delicious meal, you want to go through every step one after the other.


2. Coding

You won't believe that coding and programming are two different concepts, though they are used to mean the same thing. While programming involves the whole process of planning what task to give to the computer, the variables you would need, the type of language you would use and many more, coding simply means writing the exact code that would make your program work. Programming also involves debugging your codes to fix errors.


3. Program

A computer program is a sequence or set of instructions in a programming language for a computer to work with. The difference between an algorithm and a program is that anyone could read and understand an algorithm since it is written in basic English language but a program is written using a programming language such as Python, Javascript, Java, C++ and others. To understand the essence of such program, you would need at least a fundamental knowledge of such programming language


4. Bug

Do you like bed bugs? No you would say. We are human beings and here you are as a kid trying to write the most important program in the world, you will definitely make some mistakes, either it is a typo error or even a syntax error (such as trying to add a string to an integer), these are undesired and could make our program crash (not working).


5. Debugging

Debugging is the process of detecting and removing computer bugs or potential errors in a program that can cause it to behave unexpectedly or crash. Every programmer must know how to debug his/her code to ensure you do not just spend hours and days writing a code only for it to misbehave during demoing.
One of the ways to help you quickly debug your program is to adopt some basic rule of thumb when writing your computer programs. These include writing neat codes (just like writing legibly makes your handwriting easy to read), neatly written codes ensures that your code is readable both to you and someone who would want to help you out in debugging your code.
Another way to help you quickly debug your code is making use of comments, this is so crucial, either writing the documentation of a code function or just putting a nice comment, it can really save you from headache when trying to read your code all over again for debugging process.