Issues » 5

Archive | Read this issue on the Web
JavaScript Weekly Issue 5
December 10, 2010
It's issue 5 of JavaScript Weekly! There's been so much great stuff in the JavaScript world this week I haven't had to bribe or coerce anyone into giving up their secrets ;-) Let's get straight into it:
This week's top news
Google's V8 Gets A Big Performance Boost with Crankshaft V8, Google's JavaScript VM and implementation (and backend for node.js), has gotten yet another significant performance boost with the introduction of Crankshaft, a new 'compilation infrastructure' that aggressively optimizes code V8 runs. It's available in the up to date developer builds of V8 and Chrome and should roll out widely in time.
Announcing JS Boot Camp: A 2 Day JavaScript Course Prolific JavaScripter Chris Williams has opened the doors on the JS Boot Camp, a 2 day 'from interested to proficient' JavaScript course taking place February 10-11, 2011 in Reston, Virginia. There are only 30 seats and the Twitter buzz suggests it'll sell out sooner than later..
JavaScriptMVC 3.0 Released: More MVC for your jQuery JavaScriptMVC is an open source, jQuery-powered 'rich internet application' framework that brings the power of MVC (Model View Controller) right into JavaScript. It's reached a significant milestone with the 3.0 release having taken 18 months of hard work.
JavaScript Tops Ruby To Become #1 Language on GitHub GitHub has become the 'go to' place for hosting open-source projects and Ruby has dominated the site since it launched. This week, JavaScript tipped the scales and became language #1! Want to know what the most watched and forked JavaScript project is overall? Click the link..
This week's top articles
WebSockets Support Disabled in Firefox 4 Due to a protocol-level security issue, the Firefox team have decided to disable support for WebSockets in Firefox 4. It can be turned back on with a hidden preference setting but they're waiting for improvements to the protocol before making it available by default.
It's Not WebSockets - It's Your Broken Proxy Martyn from Pusher, a realtime WebSockets message broker service, gives a lowdown on what the Firefox 4 WebSockets announcement means and why it's not as big a deal as it seems. He notes that Pusher will still work with Firefox 4 in the interim through a Flash-based socket instead. (I've used Pusher - it's a great service to roll out realtime push stuff.)
JavaScript Threading With HTML5 Web Workers Craig Buckler demonstrates how to use the Web Workers API to run scripts in different threads, separate from the current page, and how to communicate with them through the Web Workers event interface. An easy to understand overview of an up and coming technology.
Deriving the Y Combinator in 7 Easy Steps Without getting all computer science on you, the 'Y combinator' is a higher order function that makes it possible to create anonymous recursive functions in some languages (including JavaScript). Ionut G Stan elegantly demonstrates how to create a Y combinator in JavaScript starting from basic principles. Even if you don't understand it, this is a beautiful walkthrough.
Building An Online Store in a Single Page with Backbone.js Elf Sternberg presents his single page, JavaScript-powered 'online store' written using the Backbone.js MVC (sort of) library. It's an interesting experiment and Elf explains how it was put together with code examples.
Tips for Writing Testable, Maintainable Page-Specific JavaScript Jeff Dean of Pivotal Labs shares a few code-driven tips on JavaScript best practices relating to structuring your code so it's easier to test and maintain.
Making Macros in CoffeeScript (sort of..) David Padbury doesn't quite get as far as building a full macro system in CoffeeScript in this article, but he demonstrates how simple it is to mess with CoffeeScript before it's compiled.
Voronoi Tessellation in JavaScript Nicolas Belmonte kicks off a series about Voronoi diagrams and how to produce them in JavaScript. There are screenshots if you're not familiar with the concept, but effectively they're diagrams split into parts based on the distance of each area to their nearest point in a smaller discrete set.
Interesting new libraries and code
htracr: HTTP packet sniffer and visualization tool htracr is a node.js application by Mark Nottingham that aims to give you 'unparalleled insight into what's happening on the wire between your browser and the Web.' Good looking stuff.
Map Crowd Reduce: Crowdsourced Map/Reduce Map Crowd Reduce is a system that allows you to 'massively distribute' CPU intensive tasks using HTML 5 and JavaScript. Essentially, it's a crowdsourced map/reduce system. In a test taking 15 minutes on one machine, Map Crowd Reduce took 20 seconds when ~50 people were viewing the same page.
Capuchin: A JavaScript implementation for the Rubinius VM Rubinius is a Ruby implementation and VM (compare with Java and the JVM). Matthew Draper is working on a project to run JavaScript on the Rubinius VM. Early days but it could offer opportunities for JS/Ruby crossovers one day.
This week's bonus links
Lettering.js: Radical Web Typography in a jQuery Plugin It's not news but it's beautiful. Lettering.js is a jQuery plugin that offers you 'radical Web typography' in the sense of having 'down to the letter' control over your type. The demos are compelling.
My 4 Week Introductory Ruby Course - Starts January 2011 A little self promotion! The doors have finally opened on a (paid) online introductory Ruby programming course I'm running that starts January 10, 2011 and runs for 4 weeks. It's for people who want to leap from the bare essentials up to being a confident, intermediate Ruby developer with the knowledge to progress further.
Published by Cooper Press.
Want to sponsor an issue? See our media kit.

© 2014 Cooper Press Ltd. Email policy Privacy policy
Cooper Press, 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 Peter Cooper