Forming Good Coding Habits

Habitual Behavior

Forming good habits can be hard, forming bad habits can be easy. The good news is that those can be switched. Habits are basically just rituals that you do everyday, until you don’t have to think about it anymore. Think of all the times you’ve brushed your teeth in the morning or at night, that’s an example of something you’ve just been doing for your whole life. On average it takes about 30 days to form a habit. In terms of forming them, some habits are bigger and some are smaller. Therefore it can be easier or harder to form them. I’m going to focus on the harder habits to form because that’s what I’ve had the hardest time with.

Focus On The Starting Line

One of the hardest parts of consciously trying to form a habit is being deterred from pursuing it everyday, because it involves a lot of effort when you look at the end result. A good way to get around that is to not focus on the end goal. If you’re focusing on the end goal from the beginning, it’s going to be pretty difficult to stick with it once you start to get exhausted of it. Simply focus on the first step of doing whatever it is you want to do. For example if you want to learn guitar, everyday you sit down and hold the guitar in your hands. You don’t have to do anything more than that if you don’t want to. For learning code, the first step would be to open your computer and open up your text editor, or go to the website you’re learning from. Nothing more. The idea here is that, it’s something simple that you can do over and over without feeling too stressed about it, and once you get in the habit of doing that, then actually doing the task will get easier and easier.

Make It Obvious

Something else that can be difficult is actually going to grab the thing that you’re trying to accomplish, or finding the thing you need. The point is that you need to make the habit that you want to form, as obvious as you can make it. Meaning put that guitar in the front room, or somewhere that you pass through over and over. The easier you make it for yourself the more you will actually do it. This one seems simple, but you will find that it can be very effective, it has been for me. I usually keep my laptop right next to me whenever I’m sitting in my chair in front of the t.v.


Some things that I need to improve on in the past week have been, my JavaScript skills have not been that strong these past few weeks. While learning about AJAX is cool, it’s hard to remember all the objects and commands. So I just need to keep doing it, and it’ll stick before too long!


I’m not sure if I told you yet but my first web page is finished! Something that I coded from the ground up with no frameworks or templates! Very exciting. That excitement has really given me a good push to keep going! The next thing to figure out on this website is animations using jQuery!

Check out our podcast, anywhere you can find them. Also check us out on Facebook and join the conversation!

Podcast Graphic
Brackets Podcast


Leave a Reply

Your email address will not be published. Required fields are marked *