Power of Eloquence

My first Hello World Post

| Comments

Beginining my first technical blog.

What better way to share my write up a few samples of my favourite programming languages I was exposed to learning years ago since building my first family computer 20 years ago.


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


Hello World - helloworld.cc
#include <iostream.h> main() { printf("Hello, World!"); }


Hello World - helloworld.cs
public class Hello1 { public static void Main() { System.Console.WriteLine("Hello, World!"); } }


Hello World - helloworld.bas
PRINT "Hello World!" GOTO 10


Hello World - helloworld.prl
#!/usr/bin/perl # # The traditional first program. # Strict and warnings are recommended. use strict; use warnings; # Print a message. print "Hello, World!\n";


Hello World - helloworld.php
<?php echo '<p>Hello World</p>'; ?>


Hello World - helloworld.js
<!DOCTYPE HTML> <html> <body> <p>Header...</p> <script> alert('Hello, World!') </script> <p>...Footer</p> </body> </html>


Hello World - helloworld.rb
def say_hello puts 'Hello, world!' end

What better way to start to get to know programming is to get acquainted with the world’s famous application.

Hello World!

This app is so famous that I decided to dig up further why it’s been famous for so long that every programmer has to know when comes to learning a new programming language.

I later learned that it’s invented by Brian Kernighan, a Canadian computer scientist, who used to work for Bell Labs in the Northern Hemisphere, who’s made a lot of serious contribution to the Unix commmunity. His computing background program spans over several old school languages such as C, Fortran, Basic, Pascal, etc, etc. All of that which lead to develop a first application built in B language - which I never heard of.

It is because of this language, he and other professor scientists want to spend time writing this tutorial to teach beginner should start learning the programming language such as its core syntax and language structure. And what better way to do that is create a simple Hello World app!

Since then, every new generation of programing languages take on Brian’s idea is making simple tutorials to get started in building simple apps by introducing its language constructs.

Which brings to my attention why an aspiring programmer like myself could barely grab the opportunity in becoming conversant in a number of languages - just as any bilingual/polyglot language speaker could muster(my background is Malaysian so I speak four languages - Malay, English, Mandarin, Foochow).