Essential JavaScript And jQuery Design Patterns Free Ebook by Addy Osmani
Design patterns are reusable solutions to commonly occurring problems in software development and are a very useful tool to have at your disposal. Addy Osmani wrote this mini-book because he felt that patterns were an area a lot of new and intermediate JavaScript developers may not have had a chance to explore just yet and I’m hopeful my book will encourage you to check them out as they can be quite powerful.
When it comes to efficiently organizing jQuery code, one of the best options is turning certain parts of it into a plugin. There are many benefits to this – your code becomes easier to modify and follow, and repetitive tasks are handled naturally. This also improves the speed with which you develop, as plugin organization promotes code reuse.