User interface is the only part with which masses interact that is why It should always be built immaculately. UI has to be amicable and eye catching as well as easy to manage for a naïve and expert. Interaction part is not just the graphic layout or visible items for almost all type of web applications, simple or advance. Here a problem arises.
What is the best method to build front end of the web application while there are numerous frameworks available for building simple text page to complicated forms. In this article we shall discuss the different available java script frameworks which provide ease in building web forms. We shall also discuss right approach to use the frameworks discussed beneath.
1- Google Web Toolkit
Is initially built for the ease java developers who want to write UI in simple java based framework. GWT has its own compiler which converts code into browser readable html and JavaScript while the coder only write in Java language. It means GWT is a fully object oriented solution. Google prefers MVP pattern for writing apps under-discussion framework. Additionally developers can download GWT SDK and eclipse plugin from GWT site. Moreover GWT Designer can help creating forms quickly.
It provides more productive and comprehensive Ajax solution without writing a single of Ajax. However, coders can embed native JavaScript code into GWT using different techniques. In addition with that plugin provides debug facility which is rarely available at this level of simplicity.
One of the basic problem developer’s confront with GWT is slowness of it. It takes a while to compile. Google presents a solution for this that is development mode for programmers. JUnit can be used for testing that is exception but using mock testing is not easier anymore.
Another problem could be for some, creating new widgets or styling them is not easy. It also forces to look like Desktop application for some it is not right requirement. Additionally for intellectual programmers compiled ajax code is dingy, not readable.
2- JQuery
Second on our list is JQuery, which is the most compressive and comprehended JavaScript framework till today. Complete solution for those who want to write less and do more. Hundreds of readymade plugins are already available while coders can write their own as per their needs. It gives the right rich application development experience especially to those who are not afraid of writing new widgets and customize plugins.
Jquery library is as small as 5-6 kb. For browsers, easy to download and manage events but little more complicated for heavy client interaction applications with complicated forms. Managing code is easy but needs right practices of MVC.
Jquery is not exceptionally amicable with all browsers. It concerns sometime but not in all rich client applications.
3- YUI Library
YUI is another open source robust javascript and CSS framework. Licenced under BSD, Built by Yahoo engineers at Yahoo office which guarantees the proven experience. Especially developed to full fill rich interface needs. Comes with own Testing framework as well.
Some of YUI components do not support all browsers, various conflicts with other JS libraries are some of the shared issues with YUI frame work.
