Comment on Most Pressed Keys and Programming SyntaxesComments−Newky15yThe javascript image shows limited to no usage on the $ key, Doesn't say a lot for jQuery usage.−s00pcan15yIn the codebase here we use 'jQuery' instead of '$'.−falcolas15yDitto. 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().−udp15yUnless you put all your code in a big closure to make a correct $ in function scope: (function ($) { }) (jQuery);−iks15yThe article mentions that "the heat map does miss out on things like shift and caps. ex. in perl with the dollar sign. ($)".−jrockway15yYeah, but the $ is shown as frequently-pressed in the Perl heatmap, so that must not be what he means.
Comments
The javascript image shows limited to no usage on the $ key, Doesn't say a lot for jQuery usage.
In the codebase here we use 'jQuery' instead of '$'.
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().
Unless you put all your code in a big closure to make a correct $ in function scope:
The article mentions that "the heat map does miss out on things like shift and caps. ex. in perl with the dollar sign. ($)".
Yeah, but the $ is shown as frequently-pressed in the Perl heatmap, so that must not be what he means.