

Shocking discovery uncovered by Henry.
Nifty jQuery trick: setting attributes
I’ve been knee deep in the jQuery source code recently. It’s all gooey, but you do get to see some snazzy things. Today’s nifty jQuery trick is about programmatically setting attribute values via a function. To follow along at home you’ll need some scissors, a length of string, and some double sided tape…
Adding “1UP notification” with jQuery
Now, as many of you know, I’m a big fan of taking interactions from retro gaming and attempting to squish them onto the page as standard UI elements. If I had my way, all sites would look like BMX Simulator from the C64. With that in mind… today something great happened. A win for old-school-gaming-as-ui-elements unmatched since CSS sprites were invented: Jeremy Keith’s 1UP notifications! Don’t simply let your user know they’ve “added a friend”, let them feel like they “added a friend” AND scored 1000 points! 1UP notifications just have to storm the web with their awesomeness, and we need to do our best to help them.
Critical jQuery Info: How to pronounce “live”
After weeks of debate an answer has emerged. Live rhymes with “jive”? Or live rhymes with “give”?… that was the discussion point that was starting to turn ugly… In the live/jive corner: the “live” event is always on – like a live broadcast. In the live/give corner: the corresponding remove event is called “die”, so it’s “live & die”.
After finally getting fed up of saying “…just use the live/live event”, @twalve realised that our heros are merely a single tweet away and hit up Brandon Aaron for the answer… and here it is:
Closures with self-invoking functions
Just a quick note-to-self… I’m a big fan of using self-invoking anonymous functions to keep stuff out of the global namespace, but I forgot that they are also nifty for keeping variables in scope via closures. Here’s the problem… Let’s say with have an array that we’d like to populate with functions. The functions simply log their index to the console: