Coding with integrity

My father used to say, “A true gentleman is one who uses the butter knife even when there is no one else around.“
That was many years ago so I should explain…
A butter knife is used to take a portion of butter from the block of butter to your plate. Once the portion of butter is on your plate, you put the butter knife back with the block and you use a separate knife to spread the butter on your bread or toast. So what’s the point of that? It is to keep the block of butter clean from bread crumbs, jam, honey, peanut butter and any other contaminants on your spreading knife. It is a courtesy to other people to keep the block of butter clean… even when there is no one else around to catch you out.
I try to apply this gentlemanly principle in my software development, especially now that we are mostly working from home with no one else around.
- Coding with integrity is finding your own errors and bugs and fixing them before they contaminate the code base – not leaving them for some one else to find.
- Coding with integrity is owning up to your mistakes early.
- Coding with integrity is not claiming some one else’s code as your own.
- Coding with integrity is doing the hard tasks for your team.
- Coding with integrity is doing everything you can so the team completes the sprint on time.
- Coding with integrity is writing thorough unit tests.
- Coding with integrity is refactoring rather than copying and pasting.


