Complexity Analysis of JavaScript Code

.

Nobody likes to read complex code, especially if it’s someone’s else code. A preventive approach to block any complex code entering the application is by watching its complexity carefully. There are many measures of code complexity, the popular ones are McCabes cyclomatic complexity and Halsteads complexity. For JavaScript applications, there is a new tool from… Read more »

Ant Task to Validate JavaScript

.

Apache Ant is quite popular for automating build-related tasks, especially in the enterprise environment and continuous integration systems. Many organizations which already standardized on Ant and start to adopt web application development would want to explore the possibility of keeping Ant for a variety of JavaScript-related workflow. One of the tasks is to ensure that… Read more »

JavaScript Code Coverage with Istanbul

.

Achieving a good code coverage is a useful practice in today’s software craftsmanship. For JavaScript applications, whether it is for the browser or for the server, many tools to check the statement coverage are available. What about branch coverage? Fortunately, such a tool is finally available: Istanbul. Made by Krishnan Anantheswaran from the YUI team… Read more »

JavaScript Performance Analysis: Sampling, Tracing, and Timing

.

Performance optimization of web applications is a hot topic these days. One of the related areas is of course optimizing the application code itself. For client-side application running in the web browser, this means speeding-up JavaScript code whenever possible. Premature optimization is not a good practice, it is crucial to locate which parts cause the… Read more »

Quality Code via Multiple Layers of Defense

.

Have you written a book, a dissertation, or a report? If you prepare well, everything should be almost perfect until you need to submit it to the editor, the professor, or the supervisor. In fact, almost likely you will read the manuscript again and again, just to ensure that there is no silly mistake, from… Read more »

IE 10 Web Performance Quick Check

.

Microsoft finally made Internet Explorer 10 available for Windows 7. It is still in the preview stage, however I’m already curious about its performance characteristics. I decided to run some quick check to see how it stacks up. The test machine is an average Toshiba laptop (Core i3, 2 GHZ) running a fully up-to-date Windows… Read more »