Even if you spend a whole weekend at the gym, you won’t see any noticeable changes in your body.
The more often you learn to code, the more likely you are to start seeing your coding muscles torn apart.
But the question is where do you find the time? Between your full-time job, family time, and life management, when should you sit down and practice this “everyday coding”?
When I work as a doctor, I spend about 12 hours in the hospital, an hour commuting and about 2 hours eating, drinking and defecating. So I only have nine hours left in the day.
In theory, two hours could be allocated for coding exercises and seven hours for sleep.
But nothing is more difficult than convincing your brain to sit down and learn because your brain is already overwhelmed with work. But then I found a trick.
As humans, we have a lot of inertia. This can work against us, however, we can also use it to our advantage.
I found that once I started coding and making things, I became so engrossed in the project that I stopped caring about TV, food or sleep.
I worked until sunrise on several weekends. So how do we capitalize on this inertia? First of all, you have to understand that task switching is very difficult. It takes a lot of motivation.
If you collapse on the couch and turn on the TV as soon as you get home, you’ve already lost the night.
That’s because switching tasks and the motivation needed to do something that isn’t goal-driven, like eating or sleeping, is a daunting task.
That’s why the moment you walk in the door, the moment you move into a new environment, is the most critical moment. If you tell yourself right now that you’re only going to do 20 minutes of coding, you’re likely to succeed and use your inertia to wrap up an hour or more of learning.
No brain thinks a 20-minute task is a lot of effort, and you’ll end up fooling your brain into taking advantage of your evening.
The next step is to form a habit.
Research shows that in order to form a new habit, you have to perform this task every day for a month.
I’ve used this next trick to do a lot of different things, from practicing to coding, and it always works like a charm.
You imagine five paintings on a wall, four of them perfectly aligned, perfectly horizontal, but one of them is crooked.
Now really imagine, do you have the urge to solve it?
Now, let’s imagine a calendar with boxes representing the days. If you create a new habit on a given day, you will create a line through the day. If you continue your winning streak the next day, then you extend the line, etc. There is something inherently emotional about not breaking the continuum that motivates most people to keep going.
Get into a habit and need this skill to help you. You’re not gonna make it. Know who you are.
As strange as it sounds, there were many times when I wanted to give up, but was forced to continue because of a long, continuous line.
You can also try this by marking your calendar