Hacker News new | ask | show | jobs
by nhoj 6005 days ago
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.

2 comments

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.

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.

I agree with you. I should have done a better job. I didn't expect it to be a popular post.