Last night I went to another Ruby on Rails Development Hub, where I got some excellent help on an app that I am currently building for my work.
While there I also learnt (or was reminded about) the good habits I should be getting into as a coder. Good habits are, by nature, harder to get into than bad habits, so I feel I need to make a list to remember them. Let’s start with just four of the big ones;
- Make branches in Git – I usually only remember to do this when it’s already too late, and I have a semi-disaster going on.
- Get into Test Driven Development – Everyone is recommending RSpec. I really need to get into this. I have learnt how to do it through the Michael Hartl Rails tutorial, but I really need to make it a habit.
- Do smaller commits – rather than a general commit at the end of a few hours saying -m “Fixed some things, and it works ok right at this second”, I really need to break my commits into smaller, more easily understandable chunks.
- Use a Debugger – Rather than wailing in despair over not knowing what is wrong with something, I should use a debugger, like lovely coder Rob showed me last night (We used ByeBug).
Let’s revisit this list in a month or two and see if I am doing any of these things…