This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery vs MicroJS and the like" Watch "jQuery vs MicroJS and the like" New topic
Author

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.

thanks!
Keith Wood
Author
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
author
Rancher

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

Eric
 
wood burning stoves
 
subject: jQuery vs MicroJS and the like
 
Similar Threads
Grails and jQuery: how to get image to show that the user just typed in the URL to
Why woud you use jQuery
Looking for jQuery 1.4.2 checkbox plugin compatible with ThemeRoller
Prototype documentation
Jquery For struts 1.2?