Dariusz on Software Quality

29/04/2009

Slow Dojo initialisation

Filed under: en — Tags: — dariusz.cieslak @

If you rely only on data passed by AJAX for page rendering your content will be invisible to search engines. That’s it. According to this article preferred method to use AJAX is to start with classic refresh-per-click model that is visible to search engines then add Ajax scripting when applicable.

This week I have such situation when pure AJAX app was refactored for Google purposes. I discovered that initialisation of Dojo (that takes 3 seconds and above ten AJAX calls for *.js files) isn’t very good thing if occurs every click. Didn’t Dojo play well with apps that refresh page every request?

I found few interesting hints how this problem can be addressed and prepared custom Dojo build. It’s working well and now initialisation of Dojo takes under one second (and it’s acceptable now for end-user).

28/04/2009

Why Unit Testing Really Matters?

Filed under: en — Tags: — dariusz.cieslak @

It’s not very uncommon for software projects to rely only on integration testing made relatively late in software development cycle. I propose move bug-catcher earlier and closer to developer in order to minimise testing overhead and give better stability of code.

The promise of automated integration testing

A typical project manager may ask himself a question: “Isn’t the best way to check the implementation running it all at once?”. During such big run some script recorded by a tester could examine functionality of all components and check if those components are properly integrated. Sounds very promising: verify components and interfaces by using one method.

There are many tools on market targeted at recording and replaying sequences of operations done thru user interface. Salesman will promise you that soma magical testing tool will be easy to and guarantee you high reliability of your software. It wont.

(more…)

Powered by WordPress