Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
axod
on Jan 7, 2010
|
parent
|
context
|
favorite
| on:
JQuery Code Smells
Yes, I know. My point is that most people won't know/bother doing
$myDiv = $('myDiv');
They'll simply use $('myDiv') all over the place which will be horrible.
noodle
on Jan 7, 2010
[–]
so, the complaint is that people who don't understand jquery use it incorrectly/inefficiently?
axod
on Jan 7, 2010
|
parent
[–]
meh. If you like it use it. Personally I find that code ugly, inefficient and error prone.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
$myDiv = $('myDiv');
They'll simply use $('myDiv') all over the place which will be horrible.