Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Good of Libraries

As we have said throughout this chapter, all libraries have their good sides and bad sides, even jQuery. It’s not so much about poking holes in individual libraries, such as discussing whether YUI is better than jQuery, or whether they’re better or worse than other libraries. If you choose to use a library over writing your own custom code from scratch, it’s important to know exactly what you’re getting into. Before choosing a library, you first have to weigh the good and bad of using a library at all. In this section we’re going to try to stay positive and go over some of the better aspects of using a library.

There’s a large upside with using a JavaScript library, the biggest advantage is what we have already gone over, where they fix the cross-browser issues inherent to JavaScript that no one wants to have to deal with. Libraries can be extremely helpful in streamlining and helping you keep focus on a project in more efficient areas. In this section we will look over some of the better aspects of choosing to code with a JavaScript library at your side.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint