Mercurial tips

I have been using Mercurial as my version control system for a while now. Here are some pointers I picked up along the way. Mercurial won’t forget files! ‘hg forget <filename>’ returns ‘No such file or directory’ Although Mercurial can perform commits, adds etc. from any location in the folder structure it seems like forget … Continue reading »

Test Driving TDD

I have become inspired and convinced by the idea of test driven development. Kent Beck said it best when he said – We write code because that is our work and we write tests so that we know when we are done. – Beck, K.  Extreme Programming Explained: Embrace Change Or something like that. So … Continue reading »

Forbidden words in JavaScript

JavaScript has 3 forbidden words – With In Eval Eval is generally understood to perform poorly and to be unsafe. But what’s so bad about ‘with’ and ‘in’? With It is sort of a quirk with JavaScript where the scope of an operation changes when you use “with”. As with a few things in programming … Continue reading »

Synchronize vim using Dropbox

If you don’t know what Dropbox is, where have you been? Here’s how I use Dropbox to synchronize my vim installation on Windows XP at work and Windows 7 at home. If you don’t know what vim is, don’t worry about it. Maybe this tip will help you install something cool and keep your settings … Continue reading »