wood burning stoves 2.0
The moose likes HTML, CSS and JavaScript and the fly likes Beginning Object Oriented Javascript Question 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 Question" Watch "Beginning Object Oriented Javascript Question" New topic

Beginning Object Oriented Javascript Question

Andy Daykin

Joined: Feb 01, 2008
Posts: 16
What AJAX libraries do you think best utilize object oriented programming? I have used Dojo mainly and I can say that it is relatively simple to use and access the api, but if you are creating a very big application it can be a little limited in that regard. Are there any AJAX libraries out there that you favor for this?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63839

Of the libraries I've used, Prototype seems to have the heaviest emphasis on OO.

[Asking smart questions] [About Bear] [Books by Bear]
Stoyan Stefanov
Ranch Hand

Joined: Jul 16, 2008
Posts: 61
I have extensive experience with YUI and only limited experience with prototype and jquery, so I don't know if I'm not too biased. Prototype really aims to be closest to thinking in terms of classes. Is this a good thing or just trying to make JS something it's not (class-based), I can't be the judge of that

<a href="http://www.thinkinginjavascript.com" target="_blank" rel="nofollow">my OOJS book</a>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63839

My biggest beef with Prototype (which I am a fan of, I wrote a book on it after all) is that it tries a bit too hard to make JavaScript seem like a class-based copy of Ruby. That, and its intrusiveness into the DOM.

It is a great library -- I'm just enjoying the hands-off approach of jQuery more these days.
[ August 27, 2008: Message edited by: Bear Bibeault ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Beginning Object Oriented Javascript Question
It's not a secret anymore!