Wednesday, December 24, 2008

Auto-generated javadoc Aaargh!

Auto-generated javadoc is perhaps the most pointless invention in the world of programming. Who decided that it would be a good idea to generate this sort of thing:

/**
* @param vehicleRegistered the vehicleRegistered to set

*/
public void setVehicleRegistered(Boolean vehicleRegistered) {
this.vehicleRegistered = vehicleRegistered;
}

There is nothing that auto-generated javadoc cannot tell you that isn't immediately obvious from the method signature. Modern IDE's even obviate the need of looking at the signature at all. These sort of comments clutter up the code, and obscure the comments that actually have some meaning (i.e. were written by someone with a heartbeat).

On the topic of comments and in a similar vein - here is my all time favourite code comment:

/**

* This method leverages collective synergy to drive "outside of the box" thinking and formulate key
* objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players
* to drive-up their core competencies and increase expectations with an all-around initiative to drive down
* the bottom-line.

*/





Nokia N95 vs Apple iPhone

I'll be looking to replace my Nokia N95 soon - it forgets the date every time that battery is disconnected and apparently there is nothing that can be done to permanently fix the problem.

I've always disliked the iPhone mainly due to its lack of features that I felt were necessary for me as a developer. Recently my wife got a 3G iPhone so I've been able to play with it and clarify exactly what I like and dislike about it.

In short, apart from the things listed below, the iPhone is vastly superior to the N95. It is nicer to use, has a far better designed interface, a better app store, is more fun, has a better screen, better browser etc etc.

Things I can do without that would only cause mild annoyance
  • mms
  • proper bluetooth
  • A2DP
  • better quality camera

Things that I could do without but which would really annoy me
  • running multiple applications at once
  • video calling

Things I can't do without
  • modem (or 'tethering' as the Americans call it)

I heard that there was an app that enabled 'tethering' but Apple yanked it from the app store for some reason. So until that one feature is available, I cannot buy an iPhone for myself.

Wednesday, December 3, 2008

Instant performance improvement for IntelliJ

It looks like this has been a performance issue for a while.

If you are currently using Project View | Packages - switch to Project View | Project instead.

There seems to be a bug with the packages view that causes slowness and lag when editing large files.