October 04, 2007

Code library aims to fuel easier JavaScript handling

The caretaker of jQuery, which compiles and simplifies tested JavaScript code for developers' use, hopes to establish a foundation to expand the project's reach

The caretaker of jQuery, a project that simplifies writing JavaScript for interactive Web pages, is aiming to establish a foundation to foster growth of the increasingly popular programming project.

jQuery is a library of tested JavaScript that has been edited to make it simpler. It saves developers time from having to write their own JavaScript, which can require time-consuming work to ensure that it runs across different platforms and browsers.

The status of a nonprofit foundation would allow software companies get a tax write-off if they let employees work on jQuery, said John Resig, jQuery's founder and Mozilla's JavaScript evangelist.

Large companies like IBM and Google often allow their developers to work on open-source projects to derive the benefit of influencing the projects.

Also part of the project is jQuery UI (User Interface), a library of components built on jQuery. jQuery UI is composed of a lot of the fun elements associated with Web 2.0, such as drag-and-drop features and widgets.

Those are components that companies want on their Web pages but would normally have to pay to develop. But jQuery is open source, so it's free to use. As a result, companies are hiring people to work in part on jQuery and jQuery UI because "we are now solving real problems for them," Resig said.

Only one person works full time on jQuery UI, and about 20 to 25 volunteers work on the whole jQuery project. The project is funded mostly by donations, which has been occasionally used to invest in code development. A top-notch German developer was hired to do specific work on jQuery UI, and the project paid him with a laptop, Resig said.

jQuery's popularity has surged since the project started around January 2006: Google and Amazon.com are now using it for their Web pages, Resig said. While it's difficult to gauge, Resig estimates about 200,000 people are using jQuery code.

But the benefits of simpler JavaScript trickle down to novice Web site programmers.

"We have a number of people who use jQuery who have never programmed ever, let alone JavaScript," Resig said. "There are people who come from design backgrounds or business backgrounds, and they just want to get something done. They're able to create something interactive now, out of nothing."

jQuery UI was just released last month, so developers are trying to fix stability problems, Resig said. JavaScript is trickier than PHP or Java, Resig said, as every time a software vendor updates a browser, it can potentially put kinks in the JavaScript running on the page -- especially if the browser has a problem.

"We're at the mercy of browser bugs," Resig said.

So Resig is establishing a program where users can test jQuery UI components on a special Web page and report back detailed problems. In the long run, users will get more stable components and developers benefit from broader testing.

"We need user feedback," Resig said. "It has been hard for us to quantify when things go wrong."

Close

On Twitter now

Application development

Powered by Twitter

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2009 Infoworld, Inc.