News for hackers. Stuff that matters.
Re:My Favorite jQuery Plugin Template by maemilius on Friday December 27, 2013 @02:16PM (#6972116)
I'm not a huge fan of the double wrap of anonymous functions. The inner one seems entirely superfluous unless you're adding multiple plugins in one file and, I think, makes the code a little harder to read since you have to look at the invocation of the function to get all the information you need about it.

It seems a lot clearer to simply declare `var pluginName = "borderize";` at the top of the function than to pass it in. Granted, that does add 6 characters to the total length of the file.

Re:My Favorite jQuery Plugin Template by xiata on Friday December 27, 2013 @02:52PM (#6972290)
Double wrapping is necessary for closure compiler to collapse variable names.
Re:My Favorite jQuery Plugin Template by kolodny on Friday December 27, 2013 @02:42PM (#6972237)
Well I plan on using this for multiple plugins in that same iffe. I also like that I'm able to copy/paste it as a block inside other jQuery blocks.
Re:My Favorite jQuery Plugin Template by jbeja on Friday December 27, 2013 @05:11PM (#6972847)
"I plan on using this for multiple plugins in that same iffe"

Isn't a little bit inconvinient, talking about modularity, will you be the only one using those plugins?