Learn About Programming in 5 Minutes
May 10, 2020

Programming

By allin5minutes

What is programming?

Ada Lovelace portrait

Programming is the process of developing computer programs that do certain tasks and is used in nearly every aspect of our lives. Programming differs from many other technical professions in that programmers do not need to be licensed or pass any certification tests in order to call themselves “programmers”. 

Programmable devices have existed at least as far back as 1206 when the automata of Al-Jazari could produce various rhythms by moving around pegs. 

The first computer program and therefore the first computer programmer dates back to 1843 when Ada Lovelace created the first algorithm for Charles Babbage’s early mechanical general-purpose computer.

Terminology

In programming, there are many specific terms that are used regularly. 

  • Bug – An error in coding that causes a program to produce incorrect results.
  • Compiler – A program that takes the code you have written and translates it into machine-readable code.
  • Debugging – The process of finding and fixing errors in the program.
  • “Hello, World!” – A computer program that displays the text “Hello, World!”. Being a very simple program, it is often used to illustrate the basic syntax of a programming language.
  • Syntax – The structure of statements in a computer language.
  • Source code – A computer program is written in a high-level programming language that is converted into machine-readable code.
  • Variable – A named storage location which can then be modified during program execution.

Quality requirements

To ensure that a program is of high quality, it should follow multiple quality requirements. Few of the most important are:

  1. Efficiency – how good is the program’s performance.
  2. Maintainability – how easy it is for programmers to fix bugs, add new features, etc.
  3. Reliability – how often the results of the program are correct. 
  4. Robustness – how well does the program respond when it encounters errors like incorrect input or corrupt data.
  5. Security – how safe is the program from security hackers.
  6. Usability – how easy and intuitive it is to use the program.

Programming languages

A programming language is a computer language used to communicate instructions to a computer. Like natural languages, programming languages conform to a specific set of rules.

No programming language is perfect. They each have their advantages and disadvantages and can look very different from each other. However, most of them contain basic instructions like:

  • Input – receive data from user 
  • Output – display or save data
  • Arithmetic – perform basic arithmetic operations
  • Conditional execution – check whether certain conditions are true or not
  • Repetition – perform some action repeatedly

Here are a couple of the most popular programming languages and their corresponding “Hello, World!” programs:

  • Java
Java Hello World code
Java “Hello, World!” code
  • C/C++
C Hello World code
C “Hello, World!” code
C++ Hello World code
C++ “Hello, World!” code
  • C#
C# Hello World code
C# “Hello, World!” code
  • Python
Pyhton Hello World code
Python “Hello, World!” code
  • PHP
PHP “Hello, World!” code
  • JavaScript 
JavaScript “Hello, World!” code

To read more about them and see their comparisons, visit the links below.

Types of programming languages

There are dozens of types of programming languages and a single language can follow multiple types. Here are a few:

  • Declarative 
    Declarative languages describe a problem instead of giving a solution. Solving the problem often looks like automatically proving a system of logical statements.
  • Imperative
    Imperative languages describe a system of state changes. The program is given steps to follow and they change its state.
  • Functional
    In functional programming, the program receives some information as an input and uses this information to create output.
  • Object-oriented
    In object-oriented programming, information is placed into a single unit called object. Objects can interact with each other.

Learn programming

Baby learn programming

Online there are numerous websites and courses dedicated to learning programming. Here are a few sites you might want to explore:

Read more