Advantages and Disadvantages of JQuery
Lately, I experimented with a jQuery event calendar on our Booking System. Our earlier version uses ASP.NET to construct the booking chart as a whole on the server and then renders the lot to the browser. It used to be a bit sluggish and awkward but worked. This made me think of the Advantages and Disadvantages of JQuery.
I wanted to have a PHP version of the Room Booking System so did a quick port from the ASP.NET C# to PHP, and so I dropped the jQuery fullcalendar component on the web page. I used a web service for the data which used to be still written in C# against a Microsoft SQLServer database.
The results were stunning! Besides looking nicer, the speed of update was unbelievable – like a Windows application. Of course, this is achieved since the web page runs almost entirely in the browser and calendar navigation may request just a small amount of data using AJAX against the web service.
Could I write the entire app like this?
Can I simply use jQuery and nothing else? Maybe – but not yet, not completely. As impressed as I am with jQuery, I think it is just one of the tools within the software developer’s toolbox. I’ll use jQuery more and more but I’ll be using.NET and PHP too. This is how I summarize it:
- Excellent User Experience, close to a Windows graphical user interface
- Impressive speed
- Coders do not have to fret about Browser variations
- Reduces Server Load as fewer round-trips
- Broadly used, good community support
- Many components already developed
- Open Source
- You most likely still need a Server framework for initialisation and Session Management
- You need another app to provide your data (like a web service) written in another language (like.NET, Java or PHP)
- In larger apps, slower to code than PHP or ASP.NET
- You need to understand CSS
- Can still be tough to debug, especially if scripts interfere with each other.
- Source code is difficult to protect
- Can be a little cryptic to read
If you have not tried jQuery then you should without a doubt do so. It is easy to get into and will enhance your web applications
This post was written by Versitek