9 ways to be a better programmer.

April 17, 2022.

Written by Thomas Duffy


Are you a programmer looking to up your game? Whether you’re a seasoned pro or just starting out, here are 8 ways to be a better programmer. From honing your skills to staying motivated, these tips will help you become a coding superstar!

1. Set a goal for the day and work until it is met.

If you’re like me, you love the satisfaction of completing a task. That’s why I always set a goal for myself each day when I sit down to work on my programming projects. Whether it’s finishing a certain number of lines of code or implementing a new feature, I make sure I have something to work towards. And once I reach my goal, I can relax and enjoy the rest of my day knowing that I accomplished something. So if you’re looking for a way to increase your productivity, try setting a daily goal and working until you reach it. You might be surprised at how much you can get done!

2. Make a daily plan and stick to it

We all know the feeling of waking up on Monday morning, groggy and disoriented, trying to remember what day it is. It’s hard enough to get back into the swing of things after a weekend, let alone try to accomplish everything we set out to do in a week. That’s why making a daily plan is so important. It doesn’t have to be complicated - just a simple list of what you need to do that day, in order of priority. And once you’ve made your plan, stick to it! Don’t allow yourself to get sidetracked or derailed. It might take some practice, but if you can discipline yourself to stick to your daily plan, you’ll be amazed at how much more productive you can be.

3. Learn every day

In today’s world, we are constantly bombarded with new information. It can be overwhelming to try to keep up with everything that’s going on. However, there is one important skill that will pay dividends as a programmer: learning.

Whether is a new programming language or reading and article to help you keep sharp, there is always something new to learn. And the best part is that learning can be fun! There are countless resources available online and offline to help us expand our knowledge. We just need to make a commitment to ourselves to keep learning every day.

4. Eat healthy foods that will help you focus

For programmers, there’s nothing more frustrating than trying to code while feeling sluggish and unfocused. Luckily, there are a few simple dietary changes that can make a big difference when it comes to mental clarity and productivity. First, cut out processed foods and refined sugars as much as possible. These items can lead to spikes and crashes in blood sugar levels, leaving you feeling tired and irritable. Instead, focus on eating whole foods that are rich in healthy fats, proteins, and complex carbohydrates. These nutrients will help to steady your energy levels and keep your mind sharp throughout the day.

5. Drink plenty of water to stay hydrated

As any programmer knows, one of the most important things to do when working on code is to stay hydrated. After all, when you’re stuck in front of a computer for hours on end, it’s easy to forget to drink water. But staying hydrated is essential for maintaining your programming productivity. That’s because when you’re well-hydrated, your brain functions at its best, making it easier to focus and think creatively. So next time you’re sitting down to write some code, make sure to keep a bottle of water handy. Your future self will thank you for it!

6. Find a comfortable place to work where you won’t be distracted.

The best place to work on your programming skills is in a serene, beautiful mountain cabin overlooking a peaceful lake. Unfortunately, that’s not always possible. The next best thing is to find a comfortable place where you won’t be distracted. For me, that means working in my pajamas at 2 in the morning when everyone else is asleep. It might not be as picturesque, but it’s definitely more comfortable - and I can get a lot more work done without being interrupted every five minutes. So if you want to improve your programming skills, find a place where you’ll be comfortable and won’t be distracted. You might just be surprised at how much progress you can make.

7. Put away all electronics that can distract you from coding.

If you want to be a good programmer, you need to be able to focus. And that means putting away all of the electronics that can distract you from coding. That means no more checking your email every five minutes, no more browsing Reddit, and no more playing Clash of Clans. When you’re coding, you need to be laser focused, and any distractions can quickly lead to errors. So do yourself a favor and put away those electronics. It might be tough at first, but you’ll thank yourself later.

8. Take a break every hour to get up and move around

If you’re like most programmers, you probably spend a lot of time sitting in front of a computer. And while programming can be an extremely rewarding career, it’s important to remember that it’s not exactly good for your health. That’s why it’s important to take a break every hour to get up and move around. Not only will this help to improve your circulation, but it will also give you a chance to stretch your legs and relieve any muscle tension. And who knows, you might even come up with some new ideas while you’re away from your desk. So next time you’re feeling stuck, don’t be afraid to take a break; it could be just what you need to get your creative juices flowing.

9. Don’t be afraid to ask for help from your fellow programmers.

When it comes to programming, there’s no shame in admitting that you need a little help from your friends. In fact, asking for help is a smart way to improve your skills and learn new programming techniques. And don’t worry- even the best programmers still have to ask for help. So next time you’re stuck on a programming problem, don’t be afraid to reach out to your fellow programmers for help. You might be surprised at how willing they are to lend a helping hand.


I hope these tips will help you stay productive and focused throughout the day. Don’t forget to take breaks! Get up and move around every hour, eat healthy foods, drink plenty of water, and stick to your list of tasks as closely as possible. And if all else fails, find a programming buddy who can keep you on track. Thanks for reading!

Written by Thomas Duffy

Want to Build animations like the one above?

Sign up and get notified when I release my mini course on building animations with React.