Hello, World!

If you are an engineer, a physicist, or even a mathematician, you would have at some point in your life tried to “print” these two words on a computer screen. This is programming in a nutshell, it a way of manipulating our machines (computers) to do what we want. There is however a language barrier between us because computers only speak binary, while our brains are systematically hard-wired to count in decimal from the moment we are born. So we invented programming languages which allow us to write our instructions to a computer in a human readable language. In its essence, a programming language is just a language like English or Mandarin, but the reason we have multiple programming languages is less so because of just being different, and more attributed to logical reasons.

To have idea of how these languages differ, here is a list of different programming languages, their common uses and the typical code in those languages for printing our beloved “Hello, World!” string.

C (used for real-time and resource efficient programs)

#include<stdio.h>

main(){

    printf("Hello, World!");
}

 

Java (most commonly used these days for android apps)

public class HelloWorld {

    public static void main() {
        System.out.println("Hello, World!");
    }
}

 

Python (used for general-purpose programs)

print ("Hello, World!")

 

Fortran (used for scientific computing)

program hello
    print *, "Hello, World!"
end program hello

 

Html (used for creating webpages)

<html>
<header><title>This is title</title></header>
<body>
Hello, World!
</body>
</html>

 

Verilog (used for describing logic circuits to a computer)

module hello

initial begin
    $display (Hello, World!);
    #10 $finish
end
endmodule

Mr Panda

Advertisements

3 thoughts on “Hello, World!

  1. Starla Tewell says:

    I’m usually to running a blog and i really admire your content. The article has really peaks my interest. I am going to bookmark your web site and maintain checking for brand new information.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s