Worzone, Yepnope, JSHint

04 Mar 2011 | By Alex Young | Tags libraries games graphics

Worzone

Worzone (GitHub: raimohanska / worzone) by Juha Paananen is a game written using Microsoft’s Reactive Extensions for JavaScript. There’s also a blog post about game programming with Microsoft’s RX library in which Juha explains some of the concepts behind reactive programming in JavaScript.

Yepnope

Yepnope (GitHub: SlexAxton / yepnope.js) by Alex Sexton and Ralph Holzmann is a script loader. I realise there’s a million script loaders, but this one caught my eye because it’s got a great site and documentation.

It can be used to load JavaScript or CSS. The example on the site looks like this:

yepnope({
  test : Modernizr.geolocation,
  yep  : 'normal.js',
  nope : ['polyfill.js', 'wrapper.js']
});

The test property is used to determine if the yep scripts should load, else the nope scripts will be loaded instead.

The library ships with a test suite, and the author notes it works very well with Modernizr:

Currently yepnope is being included in special builds of Modernizr, because it’s such a good companion to a feature testing library. The output of Modernizr is a fantastic input to yepnope.

It also supports plugins:

Yepnope was designed to be customizable. There are a few simple hooks throughout the loading process that allow you to inject code and change settings around on the fly. There are two main ways to do this: Prefixes and Filters.

JSHint

JSHint (GitHub: jshint / jshint is a fork of Crockford’s JSLint. The website allows you to test it out, but I recommend that you download jshint.js and use it locally.

It currently supports browsers, Node, and Rhino, so you should be able to integrate it with your existing projects.


blog comments powered by Disqus