Thursday, February 26, 2009

Hello World in Various Languges

C++
----

#include
using namespace std;

int main()
{
cout << "Hello, World!\n";
}

Java
----

class HelloWorld {

public static void main(String [] args) {

System.out.println("Hello World");
}
}

Erlang
------

-module(hello).
-export([hello_world/0]).

hello_world() -> io:fwrite("Hello, world!\n").


Groovy
------

println "Hello, world!"

Ruby
-----

puts 'Hello, world!'

Scala
-----

object HelloWorld with Application {
println("Hello, world!")
}

Even though this is a very simple program in different languages Ruby and Groovy stand out from the rest in terms of language simplicty.

Great Books for Developers

Here are some great books that are a must read for anyone who wants to be a great programmer.

1) Pragmatic Programmer - Dave Thomas and Andy Hunt
2) Refactoring - Martin Fowler
3) Design Patterns: Elements of Reusable Object Oriented Software - Erich Gamma
4) Compilers: Principles, Techniques and Tools - Alfred V. Aho, Ravi Sethi and Jeffrey
5) Effective Java - Joshua Bloch
6) Test Driven Development by Example - Kent Beck
7) Productive Programmer - Neal Ford
8) Smart and Gets Things Done - Joel Spolsky
10) Programming Pearls - Jon Bentley
11) The Art of Computer Programming, Volume 1 - Fundamental Algorithms

I have personally read all of them but they are certainly in my To-Read list.If I have missed out any great books please feel free to add them.