File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Beginning Object-Oriented JavaScript - YUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Beginning Object-Oriented JavaScript - YUI" Watch "Beginning Object-Oriented JavaScript - YUI" New topic

Beginning Object-Oriented JavaScript - YUI

Tomasz Prus
Ranch Hand

Joined: May 20, 2008
Posts: 73
What You think about YUI and does your book have some chapter about this?
Are jQuery and YUI alternative solutions?
Stoyan Stefanov
Ranch Hand

Joined: Jul 16, 2008
Posts: 61
Hi Tomasz, thanks for the question. The book is not about a specific library, the purpose of the book is promote "thinking in javascript" rather than train in using just one library. After reading the book, the reader should be able to create own libraries and frameworks, if needed.

There are mentions of some libraries in the book though - YUI, jQuery, prototype.js, but these are more like real life examples of how a library approaches a problem, e.g. inheritance.

For quite a while I was feeling against using third-party libraries, especially for simple tasks, because you end up "paying" with a 100-200K download for a simple DOM manipulation. YUI changed my mind though, I really liked it, especially the fact that you can only include the parts of the library you need. I work at Yahoo! now so I'm probably a little biased towards YUI vs all other libraries, but I really liked YUI even before I joined Yahoo.

Thus said, jQuery is also a great library and has a nice "do more with less code" approach. Which is actually what YUI seems to be embracing too in its newest 3.0 preview release. Code such as:

this is much more jQuery-like.

<a href="" target="_blank" rel="nofollow">my OOJS book</a>
Tomasz Prus
Ranch Hand

Joined: May 20, 2008
Posts: 73
Thanks a lot!
I agree. Here's the link:
subject: Beginning Object-Oriented JavaScript - YUI
It's not a secret anymore!