Archive for the ‘javascript’ Category

Speed Scrabble Notifier for Firefox

Wednesday, September 28th, 2011

If you’re a Speed Scrabble player and running Firefox, then you might be interested in trying the new Speed Scrabble Extension.

The add-on helps you keep track of who is currently online so you can easily drop in for a game. Try it out!.

Speed Scrabble is a fast, fun and free online multiplayer word game. If you’ve not played it before then check it out!

If you aren’t a Firefoxer, there are similar extensions for Safari and Chrome.

If you’re a software developer interested in seeing how the extension works, the source code is freely available and can be used for any purpose.

If you have any thoughts on the new extension, feel free to get in touch!

Book Review – Supercharged JavaScript Graphics by Raffaele Cecco (O’Reilly Media)

Sunday, September 18th, 2011

Supercharged JavaScript Graphics provides an introduction to a number of modern and practical JavaScript topics.

This book is well-written and easy to read, with relevant, practical examples. It covers a wide range of topics, centred around dynamic graphics and game development, including:

  • Profiling and optimization
  • DHTML Sprites
  • The Canvas element
  • Vector graphics
  • Visualizations with the Google Charts API
  • Mobile app development with JavaScript

Each topic is covered in enough detail to get you started, without getting particularly involved in too many specifics. Presumably if any topic piques your interest you can investigate further.

I found this book to be an easy read and a good introduction to a number of interesting JavaScript topics. The book is particularly relevant for game development with an excellent example of how to develop a complete game with JavaScript and jQuery.

The examples in this book are excellent – well written, well explained, and typically complete and usable. It’s obvious that Raffaele knows his craft.

The book also provides an excellent overview of the current state of JavaScript and gives you a good idea of what can currently be accomplished with a pure HTML/CSS/JavaScript solution.

The only addition I would like to see is a section with recommendations for more in-depth information. Overall though this is a good practical introduction to JavaScript graphics.

Note: This book was provided by O’Reilly Media as part of their blogger review program.

I review for the O'Reilly Blogger Review Program

JavaScript Task Queue – Hack it #9

Sunday, July 17th, 2011

Suppose you have a lot of tasks with completion callbacks to complete in the browser, but you want to do them sequentially. For instance, you might have a list of AJAX requests to make to your server.

This JavaScript demonstrates a simple solution:

If you can’t see the source code, look here.

Regular expression and Javascript Text Transformation Library

Tuesday, March 8th, 2011

Regex LibrarySupernifty has a new resource – Text Transformer. It’s a handy place to keep JavaScript text transformations and regular expressions.

If you’ve ever spent time building a complicated regular expression or transformation, check out this new page. Building regular expressions is tricky enough that you should only have to do it once, or not at all.

If someone hasn’t already built a regex that does what you want, submit yours to the site so that you can use it again later.

The site uses JavaScript to build the transformations, full source code for each transformation is available for perusal and modification – a useful learning resource.

You can also chain transformations together. For example, chain Extract Text from HTML with Word count to get the word count of a HTML page. Handy!

Keep track of new transformations with the rss feedRSS feed

We also have an API available so potentially the tool could be integrated into other applications. If you have ideas, or want to learn more, please contact us.

This will increasingly become a useful resource for JavaScript developers and regex writers, as well as anyone needing to do tricky text transformations – watch this spacesmile