Skip to content

My Dotfiles

My dotfile repo has got big and complicated, and I should probably definitely get round to streamlining some of it with ansible. But, there are some things about it that I think are good ideas, that you might be interested in. Check the README on github for the full details.

What Day Is it?

Everyone knows that as professional developers, we spend most of our time googling stuff and checking stack overflow.

Custom Gemfiles

When I’m writing or collaborating on a gem, I like to use a couple of useful lint tools every now and then. These are good for finding code smells, untested code or hinky syntax.

Love Your Self

Ruby’s Self

When you write ruby code, many times, the context in which your code is executed matters. This context will contain an assumption as to the default Object methods are being called on, self . Within a class definition, this is generally the class itself. Within an instance method definition, it is the instance of that class, etc.

Git Merge Conflicts

Git Diff Highlighting

Git now comes with a useful diff highlighter that highlights both the line and word level changes to files.