Book Image

Mastering jQuery

By : Alex Libby
Book Image

Mastering jQuery

By: Alex Libby

Overview of this book

<p>Mastering jQuery has been written not only to help maximize your skills with core functionality in the library, but also to explore some of the more intriguing ways of using the library to achieve real-world solutions that could feature on any website or online environment.</p> <p>You'll start with a look at some of the more advanced ways to incorporate the library into your pages, followed by working with forms and advanced form validation using regular expressions. Next you'll move on to animating in jQuery, advanced event handling, and using jQuery effects.</p> <p>Finally, you will develop practical examples of using jQuery with external functionality such as node-webkit, before finishing with a session on optimizing your version of the library for maximum efficiency and exploring best practices for using QUnit.</p>
Table of Contents (21 chapters)
Mastering jQuery
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Exploring best practices and principles


Over the last few pages, we've covered a number of concepts and tips that we can use to help develop our plugin skills further. There are a few additional factors worth considering, which we've not covered yet. It's worth taking a few moments to explore these factors:

  • Quality and Code Style: Have you considered linting your plugin code through JSHint (http://www.jshint.com), or JSLint (http://www.jslint.com)? Adhering to best practices when writing jQuery is one way to help ensure success, such as following a consistent code style or the guidelines issued at http://contribute.jquery.org/style-guide/js/? If not, how clean and readable is your code?

  • Compatibility: Which version of jQuery is your plugin compatible with? Significant changes have been made to the library over the years. Are you intending to provide support to older browsers (requiring the 1.x branch of jQuery), or staying with more modern browsers (using version 2.x of the library)?

  • Reliability...