David Wampamba

< 1 min read

Hello world!

Though I have used the phrase to greet as a welcome to my personal website, I’m absolutely sure you have come across this phrase before, either in the code for programmers or the internet for the none programmers.

But where does it come from? Today I would like to shade some light about this popular two words sentence, the Hello world!

The history

According to Wikipedia, the phrase was first used recently in 1967 in the BCPL programming language as is claimed by Jargon File. Click here to read the Hello world history on Wikipedia. When programmable computers were invented it gave programmers the opportunity to code and print outcomes on the user’s screen. Thus Hello world! got the chance.

Usage

Hello world! Is often used by programmers especially in the early stages of learning a programming language and to test the programming language’s ability to handle sentences technically known as strings. See examples below.

Shell programming.

#!bin/bash
echo "Hello world!"

C programming

main( ) {
 printf("Hello world!");
}

Most programming languages which have the capability of showing characters on the screen, often use the code which introduces printing. So that the programmer can test their ability to use a particular programming language to print a message on the terminal(command line or cmd or console) or other user interfaces.

However the phrase is not exclusive to programming/coding alone, everyone can use it.

Sharing is caring

Facebook
Twitter
LinkedIn
WhatsApp
Email

You may also like this

You deserve to be there at the top.

I’m glad to present about “deserving to be there at the top” at the first WordCamp in Africa in 2023. This is a wonderful opportunity to connect and share my experience with the community. #WordCampEbbs happening now at the Uganda

Read More »

When not to use a forEach loop in JavaScript

A forEach loop is one of the most optimized JavaScript Higher-Order functions that make it one of the preferred functional programming languages. What is a Higher-Order function? It is a function which takes in another function (also called a callback)

Read More »
Resources

You are not about to die poor.

In recent years, the biggest number of people I have met are characterized by the following;- Lazy Not ready Entitled Ignorant Dishonest Inconsistent It sounds unfortunate, that most probably you will meet people of similar characteristics or more if you’ve

Read More »
Resources

Thoughts on 13-06-2019

I promised to share my thoughts in any possible way. In fact, am happy to be honoring you, my readers, that today by sharing something that could be life changing to some. Please, I request you to converse through the

Read More »
Verified by MonsterInsights