Friday, November 5, 2010

Testub es web dev

This whole week was consumed by getting the website going. Because I need the website to be running fully asynchronously I have had to learn javascript, which was a big task. Fortunately I am using the javascript core library JQuery which greatly simplifies writing javascript. (The biggest problem with Javascript is that it is executed by the client, which means that there is many many browser-compatibility issues to overcome. JQuery helps to take care of these issues).

I have included in the site a canvas element (new to HTML5) which logs the activity of the system so that users who jump on the site after it has started can visually see the 'history' of the test tubes.

One of the biggest things I found with the website is the need to only load in the updates rather than load every time. This is one of the biggest strengths of asynchronous websites, however I had decided not to do it at first, simply because it is quite difficult to implement. I quickly found that the website slowed significantly because the server was passing across huge arrays of information every three seconds. Once I optimised the system every three seconds the browser checks for updates, and only if there is updates it grabs the updated array.

Tags: website javascript jquery

Comments

Add a comment

Name:

Website:

Comment:

Twitter username: (if you want to be informed of replies to your comment via twitter)

If entered, the twitter username field is used to subscribe to replies to your comment. When someone replies, a tweet will be posted to @yourusername.

All comments are moderated before being posted, so be nice.

All fields are optional, your twitter username will not be public if you choose to put it in