The Big Lie About Clean Code and Unit Testing

Table of Contents

Introduction

Many people are convinced that waking up early, say at 5:00 AM, is an unrealistic fantasy for them. They believe that their nature and their body are constructed in such a way that it’s impossible. I used to belong to this group of people.

Finding a Reason

When you find a reason that makes waking up at this time meaningful (for example, you wake up early to write a few pages of your book, which you want to publish) or if you simply have to (because you have a newborn waking you up at this time), it turns out to be possible.

The Mechanisms of Habit

Let me tell you how it works. Let’s assume you have been studying leisurely for a few years, where waking up early was not a priority. Or perhaps earlier at home, no one specifically rushed you to get up early. Therefore, waking up later (7, 8, maybe even 9 AM) was normal. Your body and mind have developed many habitual mechanisms that support this way of functioning (metabolism, sleep depth, etc.). This becomes “your way of functioning,” and some people start to believe that “this is just how it is” or that “this is just who they are.”

Breaking the Habit

Of course, any change in the short term causes pain. If you start waking up two hours earlier than usual, it will be painful. Therefore, you need strong motivation—why do it, why subject yourself to discomfort, leaving the cozy comfort zone. Otherwise, the habit will quickly prevail.

The Lie About Clean Code and Unit Testing

If you’ve convinced yourself that you need to eat breakfast before leaving and you do it every day, you will genuinely feel sick if you don’t. If you’ve convinced yourself that you don’t feel hungry in the morning (because, at least for a period in your life, you overate in the evening, and then you don’t feel like eating in the morning), whatever you try to eat early in the morning will make you nauseous.

The same applies to the commonly expressed myth that there is no time to write clean, readable code and perform unit testing (or TDD, BDD). This is a lie in which most people believe because they have developed such habits—they never wrote that way, or they tried it for a few hours and failed. So why should they think differently? In their mental space, there is no place for what is not habitual. It’s time to wake up. It may hurt, but it can equally be an amazing adventure on the way to becoming a P R O F E S S I O N A L. The choice is yours.

(Text translated and moved from original old blog automatically by AI. May contain inaccuracies.)

Related Posts

So How’s It with Architecture - Up-Front Design or Evolutionary Architecture?

So How’s It with Architecture - Up-Front Design or Evolutionary Architecture?

Where does architecture currently stand? We can say that there are two classic approaches:

Read More

Technical Leader Worries: I Am Not a Born Leader

Technical Leader Worries: I Am Not a Born Leader

Have you ever heard about Alexander the Great, Napoleon, J. F. Kennedy, Martin Luther King? I bet you have. These are great historical leaders. These names often come to mind when we think about leadership. When coupled with Hollywood movie characters, we imagine leaders as heroes with strong charisma and exceptional talent for public speaking. This stereotype is hard to shake. But wait a minute… Is this what we should adhere to when talking about technical leaders?

Read More

Young Manager/Team Leader! Get a Grip!

History tends to repeat itself, and this is a common tale among young managers and team leaders. A recurring, tragic mistake is the commitment to unrealistic deadlines.

Read More