Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Yahoo Previews YUI 3.0 JavaScript Library

Yahoo_logoYahoo has released a preview of the next version of its popular YUI JavaScript framework for web developers. YUI version 3.0, which will be released as a beta soon, has some fairly radical changes from the current 2.0 version.

With JavaScript-heavy websites like Flickr, Yahoo Mail, MyYahoo and Yahoo Sports, Yahoo has long been at the web’s cutting edge for producing rich, interactive user interfaces. The company’s freely available YUI library has helped popularize various innovations like drag-and-drop actions, tabbed interfaces and click-to-edit text fields on the web.

Among the new features slated for 3.0’s final release are much-improved performance, smarter loading to reduce a page’s download time and a combined DOM and custom-events model that makes it easier to work with all events in a unified way.

The downside is that a sizable chunk of the 3.0 code is backwards-incompatible. Version 3.0 is such a departure from 2.0, most existing applications will need to be rewritten to support 3.0’s features. The other, and judging by developer feedback, more controversial new feature is the inclusion of JQuery-style selectors. While optional, these selectors represent a significant change in the way developers write YUI code.

Many JavaScript programmers have long loved YUI precisely because of its verbose syntax, which required traditional calls to getElementById, rather than relying on custom selectors. The argument against custom selectors is that, while it might take a bit longer to write the more traditional code, the end result is far more readable and easier for teams of programmers to maintain.

Still, syntax quibbles aside, YUI 3.0 looks to be a nice upgrade. At the moment the project is in the early stages and not yet ready for prime time, but look for the first beta release around the end of 2008. You can view the full YUI roadmap at Yahoo’s Developer Network, or participate in the discussion in the YUI3 Yahoo Group.

In the mean time, check out Dav Glass’s Draggable Portal example which shows some of the new code in action.

See Also:

Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year