During your journey as a developer, one of the main activities in your day is going to be coding. Writing code needs to become part of your life, not because you want to make a living out of it, but because you’re looking to be great at it. Just as any Olympic athlete spends a portion of their day training and the rest of it thinking about their training, you need to do the same. If you’re aiming to become an Olympic coder (granted, that’s not a thing, but it should be) you need to make code your life.
I’m not asking you to forfeit time with your loved ones, but keeping code in the back of your mind is something that you’ll want to do. While that might sound a bit vague, my point is that the intrinsic logic behind the act of coding—what’s usually known as Boolean logic—should be present in all you do. That’s how, when you sit down to write some code, the logic will just flow out of your fingers.