News for hackers. Stuff that matters.

JP1990

Re:JQuery source explorer on Monday February 01, 2010 @04:04AM (#1092068)
The problem is, with jQuery specifically, not all functions are declared in the conventional fashion. E.g. trying to find the "height()" method is quite hard with a simple IDE search tool -- look how its defined: http://gist.github.com/291542

It's easy when they're declared as "function name(){}" or "name: function(){}" (in an object) .. or even "name=function(){}" ... but beyond that, it's simply not worth using your IDE's find tool.

Re:JQuery Code Smells on Thursday January 07, 2010 @12:45PM (#1037515)
I agree with you. I should have done a better job. I didn't expect it to be a popular post.
Re:JQuery Code Smells on Thursday January 07, 2010 @12:44PM (#1037513)
You've misunderstood the intent of the post. It's mostly my fault -- I shouldn't have named it "jQuery code smells". The point of the post was to list jQuery code snippets that exhibit "code smells", -- you seem to be under the impression that I think that jQuery itself, smells. And that couldn't be further from the truth.
Re:JQuery Code Smells on Thursday January 07, 2010 @12:42PM (#1037501)
What did you expect? It's a personal blog. Your comment is also based on your opinion and is representative of your preferences. And also, they're not complaints; through the post I'm trying to inform others of what are generally, bad practices. Sure, they're not all agreed upon as bad practices, but that's what the comments are for. Have you read all the comments? As the author of the post, I've found other's opinions to be invaluable to me -- maybe you should post an opinion that confronts the post's shortcomings, instead of just saying that it's "silly"...