Main Content

Plugin Authoring Best Practices

About the Talk

October 1, 2011 10:45 AM

Boston, MA, USA

Boston, MA, USA

jQuery plugins are everywhere, and the chance that YOU will write one—if you haven't already—are pretty high. It might start with a little bit of functionality that you want to reuse or share with someone else, but before you know it... you've released dozens of jQuery plugins and you're writing articles and giving presentations on jQuery Plugin Authoring Best Practices at conferences.... Ok, maybe that's just me. Regardless, there are many techniques you should know for writing your own reusable jQuery code, or "jQuery plugin," in a way that makes it feel like a natural extension of jQuery. In this talk, you'll learn how to create custom selectors, chainable methods that double as getters and setters, and traversal or filtering methods that are .end()-able. You'll learn how to organize your code in IIFEs and namespaces, extend option defaults, and even create a custom package.json for your plugin, so that it can be submitted to the upcoming jQuery plugins index.

Ratings and Recommendations

Avg. Rating

Average based
on 22 ratings

comments powered by Disqus