PhantomJS 1.7 “Blazing Star”

.

Photo by Frank Wouters CC-BY via Wikimedia Commons. Summer is gone. During the equinox, I have tagged version of 1.7.0 of PhantomJS, the headless WebKit for page automation. The code name for this one is Blazing Star with the following back story: “Blazing Star” is a mesmerizing and beautiful flower, it is often used as… Read more »

The Hidden Trap of Code Coverage

.

Code which never gets tested is an accident waiting to happen. The coverage of the code as it is exercised by the suite becomes an important metric. It is not a surprise if everyone aims to hit that magical 100% coverage. This applies also to the world of front-end web development with JavaScript. I’ve written… Read more »

Git Viewer: GitHub vs Google Code

.

I often still use Google Code Project Hosting service to keep my public repositories. In this age where GitHub is very popular, I often get asked why I bother to do that and not just stick with GitHub. Here is a short explanation. The first motivation is to avoid intentional centralization. Git is distributed, there… Read more »

Ternary Conditional and Boolean Values

.

Many programming languages support the ternary conditional operator. It is very useful to shorten the code since something like: if (fast) speed = 70; else speed = 25; can be rewritten to look like the following (C-style syntax). In such a form, it is also concise, readable, and unambiguous. speed = fast ? 70 :… Read more »