donderdag 24 april 2008


What is Spring? I haven't got a clue, but the marketing tells me this:

  • Spring is Java.

  • Spring is enterprise, a replacement of or addition to traditional J2EE.

  • Spring is POJOs (Plain Old Java Object), so no EJBs (Enterprise Java Beans) in all sorts of flavours.

  • Spring is Open Sources, so no licence fees.

  • Spring is modular, so I can start with its JDBC template, and gradually introduce Dependency Injection (DI, better known as Inversion of Control), Aspect Oriented Programming (AOP) and enterprise service templates.

I tried to learn EJBs. I really, truly did. Several times. Using different methods. But every time I am overwhelmed by the insurmountable heap of knowledge you need to get anything done. And instead of programming, you're constantly 'configuring' in unreadable, endless, and complicated XML files (and to make matters worse, this configuration depends largely on the brand of container you have chosen). There's plenty of tools to help you with these tedious tasks, but is the need for these tools not the best sign that something is seriously wrong with the architecture.

Instead, Spring's inversion of control and modular design, allow me to program vanilla Java and selectively pick services from the container. Better still, if a good implementation of a service exists, Spring doesn't re-invent the wheel, but re-uses the implementation. That makes sense to me.

That's the theory, anyway. Maybe I should give Spring a try?

woensdag 23 april 2008

My desktop environment

Ubuntu with a GNOME desktop is my OS of choice. But I have Vista as a boot alternative. Ubuntu provides everything I need, with one exception: exchange of Microsoft Office files. I can read and edit them with OpenOffice, but when I send them to Vista/MacOS-users I am in trouble: it almost works, but not quite. Favourite applications include Firefox, Thunderbird, and Eclipse.

This may sound corny, but I choose Ubuntu because it feels light and airy. I feel in control. Comparing Ubuntu to Vista is like comparing Spyker to Lexus.

Still, it's not all good news with Ubuntu:

  • I couldn't get my webcam to work until recently. When I tried Zapping the webcam LED went blue and suddenly I was looking at myself on-screen. Still, other applications don't do anything.

  • The spam filtering under Thunderbird doesn't work properly. Spam is marked, but never moved to the Junk folder. This is a known bug.

  • My WLAN connection breaks every so often. To be honest, I don't know if this is a problem of Ubuntu or of my hardware. When running Vista, I don't notice this problem. But then, under Vista a lot stays hidden from me.

  • The suspend function doesn't work properly. When I close the lid, Ubuntu usually suspends. And when I open the lid again it usually resumes. Usually, but not always. This is also a known bug.

dinsdag 22 april 2008

The GNOME desktop is clean, simple, and 'light' (in the sense that it is not a thick fluffy obstacle between me and the functionality I am after).

However, recently I got my hands on a MacBook Air. It not only looked magnificent on the outside, but on the inside as well. Especially the launchpad with its animated icons made it fun.

This article shows how to give Ubuntu a Mac OS/X look. Just follow the recipe and your desktop will be transformed in no time. And combined with the wobbly windows of Compiz, you're desktop will have even more eye-candy than a Mac.

In the end, I am proud to run Linux, so I don't really care for the Apple logos. However, I liked the launchpad, and AWN gives me that. Some interesting things happened:

  • Next to fun, the launchpad is practical as well. I always wanted to assign a fixed position on the task bar for my favourite apps. With AWN I get that. Better still, with the conventional panel, I had to remember if I had an instance of an application running. Now, AWM remembers that for me. So, to open Firefox, there's only one button and it's always in the same location. Simple.

  • The jumping icons drove me mad. I made them glow instead.

  • The AWN notification area is ugly, so I use trayer instead. Not the most beautiful solution, but as a compensation my workrave notifications work (which they never did in the GNOME panel).


Have you noticed how web pages have become more responsive lately? No more tedious waiting for a page to load after you have clicked its link. Instead, the page reacts instantaneously to your input. This is Ajax at work.

I used to think Ajax was yet another Java-framework. But it isn't. It's acronym says it all: Asynchronous JavaScript and XML.

Like LAMP it is not a new technology, but a stack of existing ones. You cannot buy or download Ajax, but you can combine its composing technologies. Ajax uses these technologies to enhance the user experience on the web by bypassing the conventional request/response architecture of HTTP.

MS Linux

On the surface, the Linux-deal between Microsoft and Novell was surpising. At first Microsoft tried to ignore OSS, than it tried to fight it, and now they seem to adopt it.

But it turned out to be a strategic move about patents. Microsoft claims that RedHat Linux violates dozens of their patents. By threatening RedHat users, Microsoft hopes they will migrate to Novell's SuSE Linux. They claim that in China this approach is already proving to be succesful.

To their credit, the patent-game is not the only result of this cooperation. They also work on interoperability between Microsoft and Linux environments. Which is something that could be very beneficial.