How to program the easiest Hello world on earth!

In this post I´m going to show you how to easily start with your programming carrer.

Some years ago an undergraduated from a Computer Science university had to suffer the real pain of starting her/his first compiled program in C or Java, and one of the common excersice came on the dashboard was the “hello world” display.

The Hello World excersice is just a way to start on a new programming language, if Java was your weapon of choice you probably saw something like this:

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!"); 
    }
}

That´s right, five lines of code that obligates you to think in a oriented object way, and the final output (or the result) is a string that´s shows you two words (Hello World), like this:

Hello World!

Is not the purpose of this post to explain everything around how to set up an entire and complete IDE (or Integrated development environment). let´s think this like a 2000’s matter.

Nowadays the technology has simplifying everything, including the way we code, so let´s see how a first year student can open her/his browser and start coding like a pro (no fake).

She or He can start by opening a new empty Chrome window:

Then they want to press the F12 key, you´re going to see the next strange window and press the “Console” option:

Inspection window of Chrome Browser

Then type “console.log(“Hello World”) and press “Enter”.

Finnaly Voilà! you have a complete first program running!

So as you can see, it is barely neccesary some basic understanding of how to use a computer that you have an entire set of tools ready to use to start your very first project.

So, pause for a couple of hours those Netflix episodes and deep a little dive into these fascinating world of programming!!!

Nice coding!

Join the Conversation

1 Comment

Leave a comment

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

Close Bitnami banner
Bitnami