Languages

Classes in JavaScript

JavaScript is a functional Object-Oriented language. The language’s first class citizens are functions. Functions can be assigned as literals to variables as shown below. var workOut = function(calories){ document.write("Burning " + calories + " calories); } workOut(100); Functions can also […]

Seven Languages in Seven Weeks

I have been a great fan of Bruce Tate for years now. I just randomly picked up his book ‘Better, Faster, Lighter Java’  before my flight from Chennai to Delhi few years back. I completed the whole book at one shot […]

Java, C#, Groovy, Ext JS4 and constructors

I have always found writing/generating constructors for a class a very boring task in Java. I wanted a much easier way to initialize member variables instead of writing overloaded constructors. If you want to write a simple “Employee” class with […]