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 jQuery vs MicroJS and the like 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 "jQuery vs MicroJS and the like" Watch "jQuery vs MicroJS and the like" New topic

jQuery vs MicroJS and the like

andrew ennamorato
Ranch Hand

Joined: Oct 03, 2007
Posts: 100
jQuery rocks. I think we all know that.

Does the book talk about when it's appropriate to use jQuery & extend it versus writing a microjs lib (or maybe even a Zepto plugin, if that's possible)? Just wondering your take on the idea of small, single responsibility JS libs versus jQuery plugins. Obv, you like extending jQuery enough to write a book about it, but just wondering what thoughts you have or how you choose to approach it.

I've recently written some JS code that works with OpenLayers, the mapping lib. And it could easily be a jQuery plugin - it's just basic boilerplate for working with OL. But maybe it'd be better off as just a little "map helper" lib, a la Mapstraction. Anyway, just an example to discuss if needed.

Keith Wood
Ranch Hand

Joined: Aug 28, 2012
Posts: 38

I haven't looked at these other libraries - I've been happy using jQuery since I first discovered it. So, the book doesn't discuss these either - it is for those that want to use jQuery to a greater extent.

Author of the upcoming "Extending jQuery" book from Manning.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can make anything fit into any library, you just personally have to think does it make sense to be done this way?

I agree. Here's the link:
subject: jQuery vs MicroJS and the like
jQuery in Action, 3rd edition