Issues » 28

Read this issue on the Web
JavaScript Weekly Issue 28
May 27, 2011
It's Friday and issue 28 of JavaScript Weekly is here. Not much for me to note this week so straight on with the links - Peter.
Headlines
Announcing SproutCore 2.0 Developer Preview Tom Dale has announced a preview release of SproutCore 2, the latest version of the popular HTML5- and JavaScript-based rich Internet application framework. With version 2, SproutCore has been rebuilt from the ground up and made highly modular, no doubt helped by Yehuda Katz, the architect of Rails 3, joining the team.
140byt.es: Community-Curated Tweet-Sized JavaScript Code Snippets 140byt.es is a project involving a tweet-sized community-curated collection of JavaScript snippets. The goal is to put together functional pieces of JavaScript in as few characters as possible.
Articles
JavaScript Byte Saving Techniques Influenced by the 140byt.es project (mentioned above), Jed Schmidt has been curating a wiki page jam packed with 'JavaScript wizardry that can shave bytes off of your code.' Lots of interesting tricks here, though they might not help with your readability.
The Basics of HTML5 Web Workers The Web Workers specification defines an API for spawning background scripts in your web application. Web Workers allow you to do things like fire up long-running scripts to handle computationally intensive tasks, but without blocking the UI or other scripts to handle user interactions. Googler Eric Bidelman shows off how to use them in your JavaScript code here.
JavaScript Conquers The Server? A Roundup In an article for InfoWorld, Peter Wayner leads a high-level overview of the world of server-side JavaScript, looking at Node.js, Jaxer, EJScript, RingoJS, and AppengineJS. He thinks that Node.js will 'quickly grow beyond doing simple experiments'.. hmm.
A Javascript Syntax Highlighter Comparison Ivan Sagalaev, creator of highlight.js, compares his own JavaScript code syntax highlighting system with SyntaxHighlighter, SHJS, and Google Code's Prettify. What's fastest? What's shortest? Find out here, but be aware of Ivan's bias.
Building a High Scores Server using Node.js and MongoDB Unicorns Can't Fly presents a walkthrough of building a 'highscore' server for a Windows Phone 7 game using Node.js and MongoDB. Even if you're not interested in the Windows Phone platform, the Node.js and Mongo parts may still prove useful.
The void operator in JavaScript Dr. Axel Rauschmayer quickly shows off the 'void' mechanism in JavaScript and explains where it can come in useful.
Create Your Own RSS Reader using Google Feed API
Screencasts
Beyond JavaScript: Programming the Web with Native Client At the recent Google I/O conference, David Springer looked at Google's 'Native Client' sandboxing technology for running native code directly in the browser (currently available as an experimental but disabled-by-default feature in Chrome) and how to build JavaScript front-ends for it.
A Re-Introduction to the Chrome Developer Tools Paul Irish and Pavel Feldman (Google Chrome's Dev Tools engineer lead) spoke at Google I/O about the Chrome Developer tools and showed off some of their features, new and old.
Code and Libraries
Dialect: Text Translations for Node.js Dialect is a basic i18n library for Node.js by Pau Ramon Revilla that lets you access multi-language translations in your apps (think gettext).
heatmap.js: HTML5 Canvas-based Heatmaps heatmap.js is a JavaScript library that can be used to generate web 'heatmaps' with the HTML5 canvas element based on data you supply. It's dual-licensed under the MIT and 'Beerware' licenses.
CoffeeScript Versions of Several Node.js Exercises ReadWriteWeb has linked up Henri Bergius' CoffeeScript ports of some Node.js exercises from 'Up and Running with Node.js'. Snippets include a chat server, socket handling, error management, HTTP handling, and a scrappy 'blog' in 40 lines using the Express framework.
Davis.js: Simple URL routing and HTML 5 History in JS Davis.js is a small JavaScript library using HTML5 history's 'pushState' method that allows simple URL routing for your JavaScript apps. The 7 line demo on the homepage shows off the idea wonderfully.
stats.js: JavaScript Performance Monitor stats.js provides a simple info box to monitor your code's performance in, what seems to me, a slightly scrappy way. It can also be easily inserted into any site in real time using a bookmarklet. You get colorful live graphs showing memory use and 'frames per second.'
JSONSelect: CSS-like Selection Language for JSON
Calipso - A Simple Node.js-based CMS
Winston: Multi-transport Async Logging Library for Node.js
node-iOS: Native Node Bindings for Jailbroken iOS Devices
ApeJS: Tiny JS Framework for Running on Google App Engine
node-mdb: A Node.js Port of M/DB, A Clone of Amazon's SimpleDB
Last but not least..
A Simple Node.JS Cheat Sheet Developers at GoSquared, a Web analytics company, have put together a good looking 'help sheet' for Node.JS developers. It's a single side and outlines some of the most used global variables, methods, and modules.
Published by Cooper Press.
Want to sponsor an issue? See our media kit.

© 2013 Cooper Press Ltd. Email policy Privacy policy
Office 30, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
Update your email address
or unsubscribe here

ONE e-mail each Friday. Easy to unsubscribe. No spam — your e-mail address is safe
Published by Cooper Press and curated by Dr. Axel Rauschmayer and Peter Cooper