JavaScript Static Code Analysis, part 2

In the previous post, I talked about static code analysis and how it can be useful in enforcing and maintaining a consistent coding style, but also in catching subtle bugs and code smells. The focus was on two tools, jscs and jshint. What other tools and techniques can you use? Continue reading JavaScript Static Code Analysis, part 2

JavaScript Static Code Analysis

Reading code is hard. It’s often difficult to understand what the developer was trying to express when he was writing that function. If you keep your old projects around, go ahead and open them. You’ll probably struggle to read even your own code. It might even look as if somebody else wrote it. Continue reading JavaScript Static Code Analysis

Adventures with automated browser tests in JavaScript

This is a long post, be advised! It goes through the adventures we have had at work with automated browser tests in JavaScript. It has been a journey full of challenges and knowledge build up, a journey that still goes on! Continue reading Adventures with automated browser tests in JavaScript

git tip: Delete merged branches

If you want to delete your local branches that have already been merged to master remotely, run this in a bash shell:

This deletes all branches that are merged, except the currently checked out branch (that’s the part with the start). So you should better run this while you’ve got the master branch checked out.

Using wget to detect broken links

To make sure I didn’t forget any images in the blog migration, I used wget to detect broken links. Better safe than sorry! Simply run:

And you get the report of the broken links in log.txt.

Turns out I had to adjust a couple of permalinks after all.

If you’re on a Mac, use HomeBrew to install wget.

Recording animated gifs in ubuntu

Last week I wanted to do a small screen recording on my Ubuntu desktop and save it as an animated gif. I tried ScreenToGif but that didn’t work in Ubuntu, it threw an exception when I pressed the record button. I found a good solution in this askubuntu question and I’m building on top of it to make it as easy as right clicking on a video file. Continue reading Recording animated gifs in ubuntu