Java has lately been seriously annoying me in this regard. Why do I have to write getters/setters for beans? Why can’t we just have a property keyword instead that does it automatically? Why does everyone insist on using getters/setters in the first place rather than public fields anyway? What’s the point? Ah, yes, we need to be able to proxy the methods through cglib for Hibernate, or via Spring’s IoC/AOP stuff, so we can write “better” code with fewer dependencies.
Continue reading More on boilerplate and IoC »
More on boilerplate and IoC
Posted December 6, 2006 by AlastairTagged As: | Categories: E-mail, Java | 2 Comments
Java boilerplate
Posted December 5, 2006 by AlastairTagged As: | Categories: Java | 3 Comments
I fixed a Wicket bug today for compressing whitespace in HTML. The wrinkle is that you need to avoid doing that inside <pre> tags, otherwise your code formatting goes all wrong.
You should probably just gzip your responses instead, as it’ll be much more efficient than this, but apparently, someone cares enough to raise a bug report, so I rolled up my sleeves. I mean, how hard can it be to strip out some whitespace?
Open Source Jam @ Google London
Posted December 1, 2006 by AlastairTagged As: | Categories: Open Source | No Comments
I went to Google for their first Open Source Jam to have a natter with a bunch of other folk working on open source projects, eat some pizza, that kind of thing.
Things I noticed:
- People think Second Life is cool, but no one knows what to do with it yet.
- People work on open source in their spare time. It had better be fun. Most of the under 30s were working on Python or RoR-based projects; the Java coders jumped up and down a bit less and had deeper voices. ;-)
- Django is generating buzz. Either that, or they came in a big group for fear of the Rails folk eating them.
- Quite a few people are finding AJAX UI-design hard. It’s difficult to adhere to the principle of least surprise, when you’re building stuff the like of which no-one’s seen on the web before.