PhantomJS 2 and JavaScript Goodies

.

As I mentioned in my earlier blog post, we are now working torward stabilizing the development version of PhantomJS. One thing I would like to elaborate here with respect to the features of this forthcoming PhantomJS 2 is its improved JavaScript support. With the fresher WebKit (thanks to Qt 5.3’s QtWebKit module), PhantomJS 2 also… Read more »

JavaScript and V8 TurboFan

.

Recently, Google engineers landed a new optimizing JavaScript compiler for V8, codenamed TurboFan. As the name implies, this is supposed to further improve JavaScript execution speed, likely to be better than its predecessor, Crankshaft. While TurboFan is still in its early stage, that doesn’t mean we can’t take a look at it. Playing with this… Read more »

Velocity, Kinematics, and Cover Flow

.

Last week, one of my favorites conferences, Velocity Conference, took place in Santa Clara. Beside the joy of meeting old friends and making new acquaintances, Velocity was exciting for me due to its crazy amount of excellent materials to digested post-conference. In addition to that, this was also for the fourth time I gave a… Read more »

The Curious Case of JavaScript NaN

.

NaN, not a number, is a special type value used to denote an unrepresentable value. With JavaScript, NaN can cause some confusion, starting from its typeof and all to the way the comparison is handled. Several operations can lead to NaN as the result. Here are some examples (follow along on JSBin: jsbin.com/yulef): Math.sqrt(-2) Math.log(-1)… Read more »

Autodetect JavaScript TDD/BDD Library

.

A unique feature of Venus.js, a JavaScript test runner from LinkedIn, is that the test configuration can be in the form of source annotation. This is useful, e.g. to choose which test library (Mocha, Jasmine, QUnit) should be used to execute the tests. Now, wouldn’t it be fantastic if the test runner can deduce the… Read more »

JavaScript Unit Tests and Code Coverage Tracking using Venus.js

.

These days, having enough unit tests for a JavaScript-based web application/library is the bare minimum. Ideally, the code coverage of those tests is also monitored in a day-to-day development situation. Fortunately, this is easy to do with a modern test runner such as Venus.js. Named after the famous Venus flytrap, Venus.js was originated at LinkedIn… Read more »