Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Newky
· 15y ago · 0 comments
The javascript image shows limited to no usage on the $ key, Doesn't say a lot for jQuery usage.
Comments
[–]
s00pcan
15y ago
In the codebase here we use 'jQuery' instead of '$'.
[–]
falcolas
15y ago
Ditto. If you pull in multiple plugins or additional frameworks (for some reason, we mix YUI with jquery), the $() notation can become broken, and you have to explicitly call jQuery().
[–]
udp
15y ago
Unless you put all your code in a big closure to make a correct $ in function scope:
(function ($) { }) (jQuery);
[–]
iks
15y ago
The article mentions that "the heat map does miss out on things like shift and caps. ex. in perl with the dollar sign. ($)".
[–]
jrockway
15y ago
Yeah, but the $ is shown as frequently-pressed in the Perl heatmap, so that must not be what he means.