News for hackers. Stuff that matters.
Re:JQuery Code Smells by nhoj on Thursday January 07, 2010 @12:42PM (#1037502)
As an inexperienced jQuery user I expected more from the article. I have nothing against the author having issues with style but don't call them code smells.

Wikipedias definition of code smell:

"In computer programming, code smell is any symptom in the source code of a program that possibly indicates a deeper problem."

I don't see the deeper problems with the smells the article brings up and if there are any the article could've done a better job explaining them.

Re:JQuery Code Smells by axod on Thursday January 07, 2010 @12:53PM (#1037542)
The sorts of issues I see with jquery are ones of gross inefficiency.

People use $ within loops without a second thought. Why wouldn't they.

It makes for quite ugly inefficient code IMHO. Having said that, it does fill a niche for people who don't want to sit down and learn javascript.

Re:JQuery Code Smells by nhoj on Thursday January 07, 2010 @01:13PM (#1037608)
Yeah I hear you. But to be fair, if anyone uses jQuery to do a select that requires a lot of dom parsing in a loop, is jQuery really to blame? Even I avoid that and I'm not a real programmer or anything..

Anywho, my major use of jQuery is for dom parsing and manipulation. It's just so darn comfy! I still need to know javascript for all the rest of the stuff the app is supposed to do though.

Re:JQuery Code Smells by JP1990 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.