Issue #76 - April 27, 2012
Mixins and Constructor Functions
Declaring Module Exports (for both Node.js and AMD)
Dr. Axel Rauschmayer shares a handful of patterns for defining module exports for both CommonJS and AMD modules.
Cursor/Caret Navigation in Web Applications
Michael Bolin explains in length the (surprising) challenges involved in merely keeping the text insertion cursor in the right place dynamically. Deep reading.
Fixing These jQuery
Extending PhoneGap with Native Plugins for Android
Using Your App's YUI Components on the Server
YUI core team member Eric Ferraiuolo has built an example app (for both desktop and mobile clients) to demonstrate using YUI on both the client and server.
From our sponsor
I'm co-chairing O'Reilly's new JS and HTML5 conference. Our program has (mostly) been announced with speakers like Alex MacCaw, Brendan Eich, Amy Hoy, Lea Verou, Paul Irish, Thomas Fuchs and Steve Souders sharing what they know. It's in San Francisco on May 29-31 and code 'JSWEEK20' gives a 20% discount.
Videos and Media
11 Talk Videos from jQuery UK 2012
Back in February, there was a jQuery conference in the UK and 11 videos of talks from folks like Paul Irish, Christian Heilmann and Addy Osmani are now available. The recording quality is good so it makes for good watching.
Lostcast: Interview with the Creator of ImpactJS
Code and Libraries
Rucksack: jQuery Plugin to Arrange Page Elements in a Chosen Width
Rucksack is a jQuery plugin that arranges elements to fit within a given width (the visual demos are best to illustrate this).
The Amazing Magical Template Engine Chooser
Cubism.js: Time Series Visualization
Cubism.js is a D3 plugin for visualizing time series. It can be used to build realtime dashboards, pulling data from Graphite, Cube and other sources.
Lodash: A Faster Drop-in Replacement for Underscore.js?
A drop-in replacement for Underscore.js that claims to deliver an 'up to 8x performance improvement' along with some extra features. I haven't tested it myself yet but it has good provenance.
dgrid: Full Featured Data Grids
Bills itself as a 'next-generation grid component that takes full advantage of modern browsers and object stores.' The examples are appealing and it's a fine example of a good project site.
A Readable Conway's Game of Life (in CoffeeScript)
A Raycasted ASCII Checkerboard in 128 Bytes
crud-bones: Skeleton Code for a MySQL or Mongo + Node.js Project
A boilerplate project for kicking off your own simple MySQL or Mongo-powered Node.JS project. It includes Cluster, Express, EJS, logging, and access to MySQL, Mongo and Redis, as well as instructions on how to deploy to Heroku.
cdir: Interactive console.dir() For The Terminal
cdir presents an interactive representation of an object similar to that of console.dir() in WebKit, except in the terminal. Looks nice!
Punch: A Fun and Easy Way to Generate Modern Websites
Punch is a simple tool to generate Web sites from Mustache templates and content stored in JSON and Markdown format. It's built in Node.js and designed to work on your local filesystem.
Tree: A New JS Unit Testing Framework for the Browser
A new unit testing framework aimed at the browser (though Node support is coming soon) that takes an interesting tree-based approach to displaying its output. Screenshot inside.
jQuery Endless Scroll
Fred Wu's popular plugin has had several updates in the last month. For example, it now supports infinite up-scrolling.
Machina.js: Finite State Machines
Last but not least..