3.17.2009

jsmeter

I have gotten permission from Douglas Crockford to use the tokenizer and JavaScript parser from his Top Down Operator Precedence work as the basis for a JavaScript code metric tool. I haven't been able to find a useful tool for code metrics for JavaScript. I have been using SourceMonitor from Campwood Software and just treating it like C source code. That works until you start to nest functions inside each other or use JSON to create anonymous objects, then it either just gets it wrong or ignores it. Other tools I've seen seem to target another language (typically Java or C#.NET) and have just some rudimentary JavaScript capabilities added as either an afterthought or a second-class implementation.

So, jsmeter is for JavaScript only. As it sits now, at version 0.2.1, it is as capable as any other tool that I've seen that handles JavaScript. In time I hope to improve it to be as good as the tools available for Java or C# are. At some point I hope to be able to see jsmeter working against JavaScript applications that are comprised of multiple files and to track their evolution as an entire project.

You can watch the incremental progress of jsmeter through my twitter @boyopeg, or come back here for milestone notifications.

jsmeter online runnable
jsmeter project page

2.18.2009

Google's Commandments

6.01.2008

axton basics

The very very very earliest axton is "ready". Almost no testing has gone into this compilation, though I have been using the constituent parts for years in various applications. Having said that, it should at a minimum simplify the process of writing a JS web app, especially DOM and AJAX stuff.