Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
jQuery Design Patterns

You're reading from   jQuery Design Patterns Write Elegant, Structured and Efficient jQuery

Arrow left icon
Product type Paperback
Published in Feb 2016
Publisher
ISBN-13 9781785888687
Length 246 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Thodoris Greasidis Thodoris Greasidis
Author Profile Icon Thodoris Greasidis
Thodoris Greasidis
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. A Refresher on jQuery and the Composite Pattern FREE CHAPTER 2. The Observer Pattern 3. The Publish/Subscribe Pattern 4. Divide and Conquer with the Module Pattern 5. The Facade Pattern 6. The Builder and Factory Patterns 7. Asynchronous Control Flow Patterns 8. Mock Object Pattern 9. Client-side Templating 10. Plugin and Widget Development Patterns 11. Optimization Patterns Index

Choosing a name


Lastly, after learning the best practices that we need to create a jQuery plugin, let's say something about the naming conventions and where to publish your new and shiny plugin.

As you have probably already seen, most jQuery plugins use the following naming convention: jQuery-myPluginName for their project sites and repositories and store their implementations in a file named jquery.mypluginname.js. After settling on some prospective names for your plugin, take a moment and search the web to verify that there is no one else with the same project name. The jQuery documentation suggests searching for plugins on NPM and refining your results by using the jquery-plugin keyword. This is obviously the best way to publish your plugin so that it can be easily found by others.

Note

For more information about NPM, you can visit: https://www.npmjs.com/

Another popular place for searching and hosting JavaScript libraries is GitHub. You can find its repository search page at https://github...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image