Tuesday, January 27, 2009

Punctuation

Spot the mistakes in this sentence: "You guy's are idiot's, commas are not the same as full stop's and an apostrophe isn't needed before every instance of the letter s."

Sigh. It seems like everyone mis-uses commas and apostrophes and no one seems to care. Except for pedants like me. Having said that, it's important to note that making punctuation mistakes like those above single you out as an idiot and a loser and no one will want to read anything you have written.

Just like this blog.

Thursday, January 22, 2009

Stuff Java Should Nick from Python: List Literals

In Python, I can create a little list really easily:

my_list = ["one", "two", "three"]

In Java, doing something simple like this is a right pain:

List myList = new ArrayList();
myList.append("one");
myList.append("two");
myList.append("three");

This is really annoying when you want to do something quick and dirty with a list.

Thursday, January 15, 2009

Java Generics

Java Generics get on my nerves. They's so bad that they almost might as well have not bothered putting them in at all.

I may write more about this if I can be bothered.