
I got really sick a few weeks back and it took me some time to get back into my comfortable rhythm of life. (Ok, I’m still working on that…) Regardless, I thought I’d share some lessons I learned from being sick that transfer well into other parts of my life. I think you’ll find it helpful, too.
My first lesson: Sometimes you just can’t power through it.
I have so much to do, I don’t have time to get sick. (As if anyone has time to get sick!) The problem is that if you try to tough it out and push through it, you might get a little more done in the short run, but you’ll end up making it worse later. As I heard a speaker say once, “You may not have time to take care of yourself now, but when you have a heart attack, you’ll have all the time in the world.”
As you get older, your ability to push through illness fades and it takes a greater toll on your body. Ultimately you just have to take the time off to heal, and it will take much longer if you don’t take that time. And trying to work when you’re sick is like trying to work when you’re tired. You just aren’t effective. And don’t even talk to me about going into the office when you’re sick! I think those days are long past by now!
So you need to listen to your body and take care of your health to be effective. But in thinking about this, it occurred to me that the same can be said about your code base. If you hacked together a bit of code so that you could hit a deadline, you can probably get away with shipping like that once or twice – as long as you make time to go back and clean it up later. (This is what we call “technical debt”). But if you make it a habit, your whole code base will start to be compromised, and the stability of your application will suffer. And adding new features or correcting problems will become harder.
If you make it a habit, your code will become fragile and people will be afraid to try and change it. It either needs massive refactoring or a complete rewrite – and who has time for that? Many companies have gone out of business in no small part due to the cost of bad code.
In the same way that maintaining a strong healthy body takes daily good habits, maintaining a robust, flexible code base takes daily good habits. Master these and your life will go well.
What habits do you practice daily – for your personal health and for your code health?


