Arjan's World: June 2005
You are now being redirected to the new housing of Arjan's World. Click here in case nothing happens

Wednesday, June 29, 2005

AJAX: No Silver Bullet?

Read an entry on today where the author urges some care in adopting something as new as AJAX. AJAX is supposed to be the new silver bullet around. While on the one hand *everybody* writes about it, uses it, and new AJAX-libraries are released on a daily basis, I really have doubts about this. The article cites the famous Coder to Developer by Mike Gunderloy where he warns to be careful about these silver bullets which are suddenly there, promise a revolution in programming, software development or whatever; only to disappear quietly and anonymously through the backdoor some time later. Citation:

When you read an article about some hot new technology, resist the temptation to immediately add it to your code. Instead, write it down on a sticky note and stick it to your monitor. If your application really needs a distributed reflection-based plug-in API, it will still need it in the morning. If not, it’s a lot easier to rip off the sticky note than to roll back the code changes

I read Mike's book with great interest, and I think his argument is a very compelling one: silver bullets are indeed things to watch for, but also to be quietly debated for their use/not-use/abuse etc. There just may be a situation where you can make very good use of something, as long as you take care not to use it *everywhere*.

I have to admit, that when I first read about AJAX, I also didn't think much of it. However, after being given a more thorough introduction by way of *the* AJAX primer by Jesse James Garrett (go read the article now if you haven't already) who coined the term I started to see it's possible benefits. The most obvious being of course that no page reloads or fetching serverside data after user actions are necessary anymore. Literally tons of nice applications like Backbase seem to have popped up suddenly the last few months, and one starts to wonder if it's really a completely new technique. Well, of course it isn't. It is just a clever rehashing of JavaScript - being around for something like a decade -, the XMLHttp object and a smart use of XML-documents flying around behind the scenes. All ingredients have been around, it only had to become 2005 before someone got to putting a nice label on the combination yielding to such a nice dinner :)

I have to admit it took me some time to get it working at first. Using the code in a much referenced Apple code sample showing AJAX technique in my own application was a bit more cumbersome than I thought. You get to learn a lot about well-formed XML in the process, for example a " in the input was really giving the implementation a big headache. It takes some time to learn that encoding is very important in XML documents (yes, I have seen XML before, but have not built it myself until then).

Conclusion: my opinion is that AJAX is definitely a useful way of working. But it is important to keep in mind that you should develop with the user in mind, and not use the technique for the technique. Is your end-user profiting from your clever use of a new acronym, is your application behaving like the user expects, then by all means use it!

You are now being redirected to the new housing of Arjan's World. Click here in case nothing happens

Tuesday, June 28, 2005

TechEd Groktalks: For People With Too Little Time On Their Hands

For those of you who are not going to TechEd Europe 2005 (just like me **sniff**) next week, there'e some small 'groktalks' that presented at the recent TechEd 2005 US version. The whole point was to not make a complete webcast / presentation, but to save everone's time and just do it in ten minutes. Really nice. I notice that although I would like to view webcasts more often, it's just not going to happen due to time restraints and.. wel, the fact that they take one or two hours, which is just too long. I especially liked Scott Hanselman's   Ten Tools in Ten Minutes talk.

You are now being redirected to the new housing of Arjan's World. Click here in case nothing happens

Monday, June 20, 2005

Windows Getting A Bit Slow?

Ever have the feeling that your Windows XP installation is getting slower and slower month by month? I make considerable use of a not-too-fast laptop while working / surfing etc. because it gives me the freedom to work everywhere I want at home. I can come in handy to give the OS some breathing room by disabling services you'll never need. Believe me, there are lots of services which are running by default that you're not likely to have a need of. This article mentions some of them: ClipBook, Error Reporting Service, Fast User Switching, IMAPI CD-Burning COM Service, Indexing Service, Messenger, Print Spooler.

Read the article for some more background (as an extra incentive to go read it, the article has a reference to an exhaustive list of services and recommended settings which I won't mention here):

Disabling Windows XP services

You are now being redirected to the new housing of Arjan's World. Click here in case nothing happens

Friday, June 17, 2005

Easter Egg in "Writing Secure Code 2nd Ed."


seems Michael Howard put an easter egg in the second edition of his famous book Writing Secure Code.

I must say, I never found something resembling an egg of this kind. Looking at the comments, other people also have a hard time finding it. Michael mentions one person was able to find it. Unfortunately this person remains unknown... try to skim through the book another time this weekend to see if I can find it, and receive eternal fame :)

You are now being redirected to the new housing of Arjan's World. Click here in case nothing happens

Wednesday, June 15, 2005

Firefox problem with Bloglines?

These days I'm using Firefox more and more on a regular basis. This means from now on I'll also us it to read my bolog via Bloglines. Yesterday I opened a BL folder with *a lot* of blog posts, which was handled OK by FF (that is instead of 142 unread items, there were 0 left. However, this morning using IE, I noticed IE still mentioned 142+ items unread. It seems the FF connection did somehow not synchronise with the server. I'll investigate this further. For the moment: is someone aware of this issue. Guess I won't be the first one with this 'problem'