Hello World

When learning a computer language a good place to start is by writing a program that says, "Hello World".

Languages vary in how you write a string of characters to be printed as a line.

Languages vary in how you print a string to output.

Languages vary in how you surround your program with extra words and punctuation to make it complete.

Languages vary in how you run a program once created. Even within a language there are many variations here, especially with advanced editors and build systems.

In C, one would use a text editor to create a program, hi.c that contained the lines,

	#include<stdio.h>
	int main () {
		printf("hello world\n");
	}

In C, one could compile and run this program with the shell commands,

	$ cc hi.c
	$ ./a.out

In Ruby, one could combine all of these pieces into one command line,

	$ruby -e 'puts "hello world"'

Many details of interacting with editors, compilers and runtimes will have been demonstrated once one completes Hello World.

See examples in many languages.