Why Great Habits Are More Important Than Great Skills
Tags: programming, agile
Published: 2020-12-08 13:26:57

Kent Beck is a very accomplished software engineer, with seminal contributions to the industry since the mid 1990's. He's credited with inventing (or [re-discovering](https://arialdomartini.wordpress.com/2012/07/20/you-wont-believe-how-old-tdd-is/#:~:text=Kent%20Beck%20is%20credited%20as,an%20ancient%20book%20about%20programming.)) [TDD](https://en.wikipedia.org/wiki/Test-driven_development). He's the creator of [jUnit](https://en.wikipedia.org/wiki/JUnit), and several other xUnit suites. He's the creator of [extreme programming](https://en.wikipedia.org/wiki/Extreme_programming) and the author of the authoritative book on the subject: [Extreme Programming Explained](https://amzn.to/3kTtWwC).

Yet with all of these accomplishments, any one of which could make the average programmer envious, he claims he's not a great programmer.

> “I’m not a great programmer; I’m just a good programmer with great habits.”  
> -- Kent Beck

What does he mean by "great habits"? He elaborated on this in a [Quora post](https://www.quora.com/Kent-Beck-You-have-been-quoted-saying-you-are-not-a-great-programmer-but-rather-a-good-programmer-with-great-habits-What-are-these-great-habits). In summary, he says:

> My books basically describe the habits: code for other people, work in small steps, rest well.

Kent's concept of "great habits" has been with me for years, and it's a guiding principle when I think about how I do my work, and how I train and mentor others to do their work. The concept of "great habits" has applications far beyond computer science and software devepment—the habitual use of [check lists](https://amzn.to/2E0lhYv) in industries like medicine and aviation are examples.

Both on [my blog](https://jhall.io/posts) and on my YouTube channel, [_DevOps Habits_](https://jhall.io/youtube), I spend a lot of time exploring what I consider to be "great habits" for a developer to learn and adopt.

![Unicorn Cowboy](https://dev-to-uploads.s3.amazonaws.com/i/bietcadsxmnyvic8p2r7.jpg)

## The importance of great habits

Most schools, universities, and boot-camps for programmers focus on the so-called "hard skills" of software development which might be summed up as "data structures and algorithms".  Of course we know this isn't enough.  In the [last three decades](https://books.google.com/ngrams/graph?year_end=2019&year_start=1800&smoothing=3&content=%22soft+skills%22&corpus=26&direct_url=t1%3B%2C%22%20soft%20skills%20%22%3B%2Cc0#t1%3B%2C%22%20soft%20skills%20%22%3B%2Cc0), "soft skills" has become the new buzzword, as the industry has recognized that being a genius "cowboy coder" isn't enough. We need to hire people with good communication skills, a team attitude, etc.

So where do "great habits" fit in?  In my estimation, great habits overlap with both hard and soft skills, but they also transcend both.

If hard and soft skills are about "what" things we do, then habits are about "how" and "why" we do them.

In theory, a perfect programmer may not need good habits. They may be able to spin out a perfectly efficient, bug-free algorithm, on the first try, with obscure variable names, without type safety, and without writing automated tests. But such unicorn cowboy programmers don't exist—except at costume parties.

This is why programmers throughout the industry rely on certain habits. Some have become ubiquitious (like the use of higher level programming languages intead of Assembly). Others, like [TDD](https://en.wikipedia.org/wiki/Test-driven_development) or [CI/CD](https://en.wikipedia.org/wiki/CI/CD) are now quite popular, but still not used everywhere. And still others are popping up all the time ([BDD](https://en.wikipedia.org/wiki/Behavior-driven_development), [the Mikado method](https://www.youtube.com/watch?v=Cvql4DtRAhU), [TCR](https://medium.com/@kentbeck_7670/test-commit-revert-870bbd756864#:~:text=%E2%80%9CTest%20%26%26%20commit%20%7C%7C%20revert%E2%80%9D%20keeps%20all%20tests%20green.,test%20%26%26%20commit%20%7C%7C%20revert%E2%80%9D%3F&text=Add%20test%20and%20pass.,in%20some%20kind%20of%20way.), etc), to be experimented with—some will stand the test of time, some will fall into disfavor, and some may stick around for niche purposes.

## What makes a habit great?

According to [Merriam Webster](https://www.merriam-webster.com/dictionary/habit), a habit is

> a settled tendency or usual manner of behavior

Washing your hands before eating may be a habit. Biting your nails may be a habit. Commiting code after every small change may be a habit. Typing one-word commit messages might be a habit.

Of course, for a habit to be good, it must be beneficial by some measure. Long debates could be had about what is or is not beneficial in a given context, but I hope we can agree that nail-biting and one-word commit messages are _not_ good habits.

So what makes a habit great?

A great habit, in my view, is a habit which somehow re-enforces other good habits. If hand-washing is a good habit, the being mindful of good hygiene would be the analogous great habit. It will lead to hand-washing, but will also lead to a plethora of other good habits: cleaning the kitchen counter, removing your dirty shoes before entering the house, etc.

Likewise, while commiting small changes may be a good habit, an analogous great habit might be: Be mindful of the future developers who will need to read or maintain your code. Such a habit leads to many more good habits: Writing good code comments, writing small functions, using descriptive variable names, etc.

## The greatest habit

![Monkey with a mirror](https://dev-to-uploads.s3.amazonaws.com/i/fu3ym3pgp626nfc0imbq.jpg)

One habit stands out above all the the rest.  And it applies to all human endeavours, not just programming. It's the greatest habit because it re-enforces all the other great and good habits, and diminishes bad habits.

Kent Beck put it like this:

> Reflection is the ultimate habit. “How’d that last hour go? What could I have done better? What do I want to try next time?” Reflection leads to all the other habits.

Learn to reflect on your own behavior and performance--both professionally and privately.  Learn to reflect on the behavior and performance of your team.  Learn to reflect on the behavior and performance of your department and company.

## Continuous improvement

![Feedback Loops in Extreme Programming](https://dev-to-uploads.s3.amazonaws.com/i/xcmbkrjwkmw3sl7vzoyi.png)

Of course reflection in a vacuum isn't going to cause any change. You might spend hours reflecting on your mistakes, and never correct them.  This is where the closely related habit of [continuous improvement (CI)](https://en.wikipedia.org/wiki/Continual_improvement_process) comes in.

CI is the cornerstone of every (successful) Agile methodology.  Scrum has the [retrospective](https://www.scrum.org/resources/what-is-a-sprint-retrospective) ritual. XP has its [planning and feedback loops](https://en.wikipedia.org/wiki/Extreme_programming). [LEAN](https://en.wikipedia.org/wiki/Lean_manufacturing#Key_principles_and_waste) has the concept of identifying and eliminating waste.

Without a habit of continuous improvement, all other habits will exist in a vacuum, and they will tend toward meaninglessness, and [cargo cult programming](https://en.wikipedia.org/wiki/Cargo_cult_programming).

For this reason, I encourage every team, and every individual developer I work with to adopt a habit of continuous imporovement first.

## Don't wait

Either retrospectives or [post-mortems](https://landing.google.com/sre/sre-book/chapters/postmortem-culture/) are great formal tools for intentionally seeking out areas for improvement. But the process doesn't need to be formalized to work, especially for an individual or small or mature teams.

If you haven't already, _begin immediately_ to use these tools, or some other intentional habit to detect, define, and resolve problem areas. Doing so will give your team, or you as an individual, the framework necessary to begin incorporating all the other habits you may run into.