Hello World

It isn't uncommon in the programmers world to start new things, like programming languages, with a hello world program. It almost reminds me of some kind of cultic ritual. You are somehow forced, by a mysterious might, to start with hello world.

An so will I. Yet alone to satisfy the hidden gods of bits and bytes. But, to be honest, I still do not know where this blog will head to. So, to please The Old and the New Gods I will provide hello worlds in a variety of ways of languages I like.

The Classics

Known by many, teached in school classes all over the world, the three most common languages I came across in my education: C++, Java and C#.

public class Hello {  
    public static void main(String[] args) {
        System.out.println("hello world!");
#include <iostream>
int main()  
    std::cout << "Hello world!\n";
using System;  
namespace Hello  
    class Program 
        static void Main()
            Console.WriteLine("Hello world!");

The Websters

Hated by one side, worshipped by the other. This are my favorite backend languages for web applications or web services.

console.log('Hello world!');  
    echo "Hello world!";
puts "Hello world!"  

The Financial

As I started working I inherited a project that forced me to use my most hated language so far. C/AL. C/AL stands for Client/Server Application Language and is used within Microsoft Dynamics NAV. It is a database specific language and has more restrictions than a high security prison. But, on the other hand, a hello world is quite simple.

MESSAGE('Hello world!');  

The Roots

I started my first programming experiences almost two decades ago with this two pearls: QBasic and Visual Basic Classic But, to be honest, let them rest in peace.

PRINT "Hello world!"  
MsgBox "Hello world!"  

The Tools

Everytime, I need to do some automation at my systems this the order of magnitude: Try it in python, go to Stack Overflow, switch to bash.

python -c 'print "Hello world!"'  

I did combine the two to safe some lines :)

The Unknown

Over the years a lot of new technologies have piled up that are still waiting for me to look into. This three four are high up on my list of languages I want to try out. Well, a hello world seems to be the right step.

alert 'Hello world!' if 2 > 1  
main() {  
    // well, we assume there is no ES6
    print('Hello world!');
package main  
import "fmt"  
func main() {  
    fmt.Println("Hello world!");
fn main() {  
    println("Hello world!");

Ok, this will be enough for today. And for the ones who are asking:

Why are you just piling up some hello world nonsense?

Well, this has two reasons:

  1. I needed some topic start the blog
  2. I wanted to try out the prism.js library :)

Ellogwen (Daniele)

Read more posts by this author.