- Extract the dom items using jQuery, sort them, and re-append them to the dom
If you want an example of just how elegant CoffeeScript can get, look no further then how it integrates with Backbone.js. In this tutorial we're creating a model and a collection in Backbone.js in it's simplest form, then expanding it to include API variable mapping - something you're going to have to do when integrating with API's in the future.
During an interview process recently I was asked to create a CoffeeScript powered AJAX widget for displaying external content. Having never used CoffeeScript before I decided to go about learning it in a completely test driven way instead of the standard of the usual “hack a few things together and recover” way I’ve done in the past.
Field paywall is a Drupal module I produced for News Corp Australia that allows Drupal editors to assign paywalls to entities choosing which fields to hide and what kind of message to display. Using the core Drupal Field API framework, Field Paywall can be retrofitted on to existing nodes without having to make major changes to system configuration as all configuration is done through field instance settings and is Features exportable.