Hello friend. My name is Jeremy Peck, a web designer and developer from Kansas City, Missouri, and this is PIXELDONOR my online blog, portfolio, and personal playground.
Latest Blog

jQuery Plugin Patterns

There was a time when just the mention of "jQuery" was enough to cause my face to wrinkle up. This was largely due to having been weened onto the Mootools javascript framework before all else. I also can't deny the fact that I have a natural tendency to avoid the "flyboy answer" to anything. Is jQuery a great tool? Without a doubt. Its also the only framework that seems to actively promote itself, often times through misleading and inaccurate statistics, which attracts masses of flyboys, making it--you guessed it--the "flyboy answer."

However, there are many instances where we won't always be able to use our preferred tools of the trade. This fact means its especially important for any javascript developer to invest time in learning several tools and adapt solutions that make the alternatives more familiar to work with. In this post we'll compare the normative jQuery plugin pattern (as presented by jQuery) to one loosely modeled after the Mootools Class constructor to find a simple and comfortable median between the two in the context of jQuery. The result will be an object oriented plugin that is reusable and allows you to maintain state without having to do elaborate element storage.

continue reading

Recent Blogs

see more

Twitter Feed

  • @andrewschoen its depressing hearing that from someone whose work is invested in python! i'm going, on my dime, bought tickets few days ago! Jan 26, 2012 at 11:05 AM
  • webfonts.fonts.com has consistently given us unpredictable results with its font delivery. anyone recommend any other services? Jan 26, 2012 at 10:29 AM
  • There's no creamer in my office. Maybe I should go the @anthonytackett or @brandon_r route and put 1/4 cup of sugar in my coffee.. hmmmm Jan 26, 2012 at 10:18 AM

follow me