Search This Blog

Tuesday, March 22, 2016

User interface needs to show the progress

Single Page Applications (SPA for short) are great as they can provide a faster user experience and more "intelligence" as you are suddenly not anymore "state less". For example you can easily check a form and provide information about what is missing while still keeping that data inside the form. Sure you could do that without a Single Page Application but it would be both slower for the user (as it requires a full reload) and more complex for you as you would need to send back all the data the user provided.

However one thing developers of SPA forget is user feedback when an operation is running. For example I'm creating X items and this operation may take more than just 1 sec, the user cannot see that the operation is going on. Therefore a small message, or a spinning icon, or some visual feedback is a must.

For very long operations it would be even wiser to have like a progress bar or a percentage of completion displayed, even if that may slow down the overall operation it would be perceived as faster and less stressful for your users.

Sure all that increase the code you need to write, but it will also greatly increase the quality of your software.

A good way to have a progress information is instead of sending 4000 commands in one shot, send them in smaller blocks like 20 or so, and every time you update the interface to show how far you are. Sure if the user kills the window the work will be done only partially. If you don't have to have this issue then you need to spawn a process on the server side when you send the 4000 commands, and have a way to query the progress to update the user interface. Depending on your language / framework this can or cannot be implemented.

No comments:

Post a Comment