News for hackers. Stuff that matters.
Re:Ask HN: What's the best way to build Javascript widgets t... by justinf on Friday December 07, 2012 @08:44AM (#4886819)
JQuery still seems to be king at the moment. There's some pushback against it in this new world of a mobile web since it adds size to low-bandwidth pages, but there doesn't seem to be a risk that it'll be dethroned any time soon.

If I were looking to make a portable and semi-futureproof toolkit right now, I'd use jQuery as a base, but limit myself to some big features, like dom queries, events, and ajax. Then I'd make sure I had it sandboxed inside all my code via anonymous functions (function($) { /* my code */ })(jQuery); so I could swap in a lighter replacement later on without a headache.

Re:Ask HN: What's the best way to build Javascript widgets t... by tjholowaychuk on Friday December 07, 2012 @09:25AM (#4886974)
jquery is codesmell of all codesmells