Best comment on an oneliner

Just red the Fishbowl and a blog entry on commenting. The best part was the following comment to a simple buffer.append(“\n”);

The newline before the title parameter below fixes CONF-4562. I have absolutely no idea HOW it fixes CONF-4562, but the simple fact that it does fix the problem indicates that I could spend my whole life trying to work out why and be none the wiser.

I suggest you don’t think too hard about it either, and instead contemplate the many joys that can be found in life — the sunlight reflecting off Sydney Harbour; walking through the Blue Mountains on a dew-laden Autumn morning; the love of a beautiful woman — this should in some way distract you from the insane ugliness of the code I am about to check in.

Oh, and whatever you do, don’t remove the damn newline.

I also liked the subheading of the blog:
tail -f /dev/mind > blog
Very geekisch :)

Posted by Karsten at 16:13

Band: The Domino Poets

Tonight I went to a very good concert of The Domino Poets which was there very first concert, but still it is a great band. You can listen to some samples over at MySpace of this great band.
Enjoy the nice music.

Posted by Karsten at 01:20 | Comments (0)


Five things I hate about AppFuse

First of all I have to thank Matt Raible for his great work with AppFuse. Appfuse gives you a lot of choices and integrates very well with a lot of frameworks/tools.
Still there are a couple of things I really hate, most of them realted to the build mechanism:

  1. It's nice to choose between the usage of JSP 2.0 or before, but making the changes (to all jsps and the web.xml) every time I build my app sucks. This should be part of the initial setup (as the package naming) and not part of each build. How often do I switch my Server from an old version to a new one or vica versa?

  2. Seperating the classes in web, services and dao is good, but I hate the building of jar-Files for the different layers. Just take the classes under dao and service and copy them into the war or move them over to the webapps folder as it is done with the web classes!

  3. Eclipse crashed with OutOfMemory errors. Always when trying to open the build file. The build file is really, really long, with lots of stuff in there. IMO 50% of it could be deleted.

  4. Generation of Hibernate-Mapping files. I really hate it to look within a jarfile how the Hibernate mapping file looks like. It is nice to get it generated, but I prefer to be able make adjustments to it by hand to try out things quickly. And it is quite hard to enter special SQL statements in an Hibernate file, if it gets overwritten all the time.

  5. I don't like to get my struts.xml merged from many sources. I like to have one struts-config file holding all my struts configuration.

So Appfuse itself is a great tool and I also like the generation of CRUD operations from a POJO or DB table, but the ant-file is a big mess and it probably is the best to simply throw it out totally.
And the move to Maven-2 with Appfuse-2 is not an option for me. Maven is even more flawed than the current Appfuse build system. Vom Regen in die Traufe!
I hope I haven't sounded like the Bileblog ;)

Matt responded already in his blog. Nice and fast.
My Eclipse is already ready for hugh memory consumption (eclipse.exe -vmargs -Xms256m -Xmx512m), but still get this OOM :(
And thanks for the @hibernate FAQ reference and the other remarks. Very helpful.

Posted by Karsten at 15:24 | Comments (0) | TrackBack