IT Portal - Daily new websites, Webmaster Tools, Free Books, Certification
You are here
10 Coding Tips to Write Superior jQuery Plugins
Submitted by admin on Sat, 2013-06-01 03:37
Through the process of writing many jQuery plugins I have come to a point where I follow a pretty standard structure and design pattern when developing my plugins. It for one greatly speeds up my development time as it’s just one part of the equation I don’t need to think about and can just copy and paste. I already know how things will be structured and will work for the most part so I can focus on just building out the main code.
Following a consistent design pattern and structure also helps when fixing bugs or building on top of a plugin. Having a structure that has proved to stand well in my other plugins means I won’t have to rehash my code to account for new details. I know it can hold well with small plugins as well as larger ones.