Source Code – Programming Foundations #02

Source code is simply the list of instructions you write for the computer to execute.  It’s important to remember that source code is always written in plain text (never rich text). You can start writing code just by using a simple text editor like Notepad or TextEdit that’s already on your machine.

Source code

Source code : All you need to know

Source code is simply plain text that you use to give very precise instructions to a computer. You don’t have to worry about memorizing commands in different languages just yet. Do remember that different file extensions are used for different programming language files. For example a JavaScript file would be saved with the extension “.js”, while a C language file would use a “.c” file extension.

Here’s a very simple program written in C language that prints the words “Hello World” on to the screen when executed.

#include <stdio.h>

int main () {
    printf("Hello World");
    return 0;


Here’s the same output given using Python programming language

print("Hello World")

And here’s the same output from the Lua programming language

print("Hello World")

You will notice that many programming languages have remarkable similarities and sometimes even use identical commands to execute simple programs. This is because these languages have evolved through similar beginnings and share some history. However, it is important to remember no two programming languages are really ever the same.

As you can see, some languages like Python allow very simple tasks to be done through one-statement programs, while other languages like C require a bit more effort. That does not mean you necessarily need to remember what may look intimidating  keywords and statements at the start. To make life easier, you can use helpful text editors and other applications like Notepad++ , Pelles C IDE and many other paid or free software that will help you out when writing source code. These editors help programmers write better instructions through features like color coding, find and replace options and line numbers. This makes sure there are fewer errors and also makes code appear more organized and easier to read.

Source code
Pelles C / Source code

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.