DEV Community

Cover image for How I Easily Code For 8+ Hours Without Feeling Tired (My Productivity System)
Nick Bull
Nick Bull

Posted on • Originally published at


How I Easily Code For 8+ Hours Without Feeling Tired (My Productivity System)

I've been coding wrong my whole life.

I thought it was okay to just sit down at my desk, open my laptop, take a task from my to-do list, and code it until I felt tired.

But in reality, this style of work always killed my productivity levels after 2-4 hours of coding. I felt so tired that I didn't want to do anything except different low energy tasks (like code review).

Today I can code 8+ hours without feeling like crap after.

What has changed?

My approach to work.

After 62+ self-development books, dozens of articles and studies about productivity, and my trials and errors, I have created a productivity system that helps me to code, write, create, and live at my maximum capabilities without procrastination, tiredness, and brain fog.

Here it is.

My Productivity System

My productivity system stays on 3 main pillars:

  1. Schedule.
  2. To-do for tomorrow.
  3. System 69 (!)

Let's look closer at each of them.


Everything starts with a schedule. What, where, and when I do.

My schedule looks like this:


I’m using a whiteboard to constantly remind myself of what I should do at the exact moment.

I always neglected to create a schedule.

“I know what and when I should do!” I told myself.

But in reality, I always forget to do or overdo my daily activities (even with a habit to do them).

For example, when I woke up at 7:00 in the morning I knew that I had 1 free hour before my work. In that hour I wanted to have time to do a morning ritual (eating, stretching, showering, breathing) and to read for 30 minutes. But many times I could have breakfast in the morning for an hour, forgetting to take the time to read. Even if I kept in mind that I have to read for 30 minutes every morning. I overdone my activity (breakfast) and stole my time from another activity (reading).

I have also noticed that without a schedule it takes a lot of time to decide what I should do next. I could finish the workout in the afternoon, take shower, sit at my desk, open laptop and then decide which task I should pick next within 10 minutes. If we count how much the same decisions I made during the day, 10 minutes becomes 60 minutes. One hour! It’s a lot of time.

The other thing is that in the process of deciding what I should do next, there is always an angel and a demon sitting on my shoulders and "helping" me decide whether I should work on the essential things to me or do some light work, or even take a break to relax. I often had to use willpower to force myself to do the "right" things without a schedule.

“If you waste resources trying to decide when or where to work, you’ll impede your capacity to do the work.” – Guardian

When I made the schedule, these problems disappeared.

Now, I always have time to do what I have planned.

I always know what I should do next.

I don’t need to use willpower to force myself to do essential things.

Schedule puts my decision-making process on autopilot.

If you want to create your schedule I recommend using Google calendar for it, so you can easily edit or share your schedule with someone else. Also, I recommend having a schedule on some piece of paper or whiteboard, to always remind yourself of what, where, and when you should do.

To-Do For Tomorrow

If the schedule helps me decide what, where and when I should do, the to-do list helps me decide exactly what I should do next.

I could spend the "perfectly planned" day, but not do what is essential to me.

For example, when I opened my schedule and saw a “Deep Work” block from 08.00 to 09.30, I could do deep work, but it didn’t guarantee that I would be doing important things during it and not some light work.

Our brain is always trying to spend less energy and will do everything to convince you not to waste energy.

That's where the to-do list comes in.

It helps me even more to put the decision-making process on autopilot and spend less time and cognitive resources on it.

It guarantees that I will do only essential things (most of the time).

My to-do list is simple, I use a plain paper notebook to make it and Notion as a digital copy (I use Notion for everything, but that's for another article)


to do 2.png

When I create my to-do list I create it in the evening for tomorrow day.


When you plan your day in the morning, you are thinking about every task that needs to be done today. It is good when the task is clear and simple and you know what to do (like “code review last commit by John”). But when you don’t know what exactly needs to be done, it will take time to figure it out. Like when you know that you need to write an article, but don’t know about what. It will take time to research your ideas and choose the right topic to write about.

And in addition to the fact that such tasks take time to research, there is a chance that you will fall into the trap of your thinking process (when you start imagining results, details, processes, and other various things related to the task, and you spend 5, 10, 15, or even more minutes on it).

The process of creating a to-do list in the morning wastes your productive morning time, your cognitive resources, and has a chance to distract you.

That’s why I create a to-do list for tomorrow and not in the morning.

System 69

When I started coding I did it like this:

  1. Open laptop.
  2. Open Code editor (VSCode).
  3. Pick a task.
  4. Code until I feel tired.
  5. Take a break (spending time on social media).

Looks normal?


Until I read about Pomodoro.

The Pomodoro Technique is a time management method when you break down work into intervals, traditionally 25 minutes in length, separated by short breaks. For example, 25-minute coding and a 5-minute break after. And divide the entire workday into such breaks.

25 minute coding.

5 minute break.

25 minute coding.

5 minute break.

25 minute coding.

etc. until the end of the working day.

I tried it and it worked, but not as great as I imagined. I definitely became more productive, but for an additional hour. And I found the 25-minute work intervals are too short for me (It took me 5-10 minutes to activate the flow state, so I couldn’t perform a "deep work" for more than 15 minutes with such intervals).

So I went further.

I found the 52 + 17 rule.

What’s this?

52-minute of work and a 17-minute break. Similar to the Pomodoro Technique.

I tested it and it worked better for me than 25+5 intervals. Now I could work productively for two more hours, but I still felt like crap after a workday.

So I didn’t stop on the 52 + 17 rule.

I started researching more about productivity and motivation and learned about effective breaks.

When most people hear the word “break” the first association is “doing anything except work.” Like scrolling Instagram feed, chatting with friends, or watching Youtube.

Technically these are all breaks, but not effective ones.

The main sign of an effective break is that it gives you energy, not takes it away.

Example of my effective breaks:

  • Stretching.
  • Hydrating.
  • Light workout.
  • Walking (without the headphones).
  • Breathing (box breathing, Wim Hof method).

After I learned about effective breaks, my workday became almost perfect - 52 minutes of work (45 minutes often in a flow state, because I need 10 minutes to reach it) and 17 minutes of an effective break that gives me energy.

Everything worked perfectly, and I have to stop there…

But I went further.

I was obsessed with the idea to make every hour of my work the most productive hour on earth.

And I think I did it.

One thing that kept me from being in a flow state all the time was distraction.

For years I didn't pay attention to it. To all the notifications that pop-up on my phone, the noise of people around me, the hundreds of open tabs and windows on my laptop, all those distractions.

I set a timer for 52 minutes, started to work, got in a flow state, and then BAM! A new notification pops up. And I like, “What’s in there?”

The flow state is gone.

Focus on the task is gone.

Productivity is gone.

One tiny notification instantly ruined my productivity.

I never paid attention to it until I started to deep dive into the personal development field (I wish I started earlier).

Now, when I work I turn off all notifications, tell people to not bother me, put on my headphones (if I work in a noisy environment), close all the browser tabs that are not related to the task, and do everything I can to avoid distractions during my working hours.

So far so good, my system seemed perfect.

But can we go further?

Of course.

The last piece of the puzzle is NO multitasking.

When I hear today that someone can do multitasking, I smile.

Multitasking is not working.

It’s a myth.

There is only one study that shows that 2.5% of subjects can do multitasking with the same efficiency levels as performing one task at a time.

Other 97.5% are not.

So when I pick some task and start doing it, I focus only on it.

*One task per time. *

Not two.

Not three.

Only one.

This is a rule I follow during my working hours.


Okay, now we have all the pieces of System 69.

Let's glue them together and see what we get:

  1. 52-minute of work.
  2. 17-minute of an effective break.
  3. Remove all distractions.
  4. Focus on one task at a time.


This is my System 69.

In the end…

These are the three pillars of my productivity system.

Today I successfully use this system to operate as a content creator. Every day I write in my blog, build the most practical JavaScript course ever, create social media content, write a book on how to Nail The Technical Interview and Land a High-Paying Job, and do many more tasks easily without effort and tiredness.

Literally, you can use my productivity system to successfully do any kind of job, not just coding. But use it wisely.

Have a great one!

– Nick Bull

And also before I forget, every week I send out a "3–2–1" newsletter with 3 tech news, 2 articles, and 1 piece of advice for you.

🔥 Get the latest Frontend news here. 🔥

Top comments (19)

pavelsevcik profile image

Another productivity killers are caffeine and sugar

If you drink caffeinated beverages regularly, then you're dealing regularly with withdrawal symptoms and your overall energy levels are lower than without those drinks

source: Why Does Coffee Make Me Tired? │How Caffeine Is Quietly Sabotaging Your Energy Levels

Sugar works in similar way, gives you peak, but you run quickly out

cecilelebleu profile image
Cécile Lebleu

I stopped drinking caffeine a few months ago and I became a different person. Less stress, anger, and worry, and more stability in my energy levels throughout the day. Caffeine doesn’t “wake you up”, it’s a hormonal stressor for your body.

So I tried a few ways. First, just stop drinking coffee. Didn’t work. Replace it with tea. Didn’t work. Replace it with an energy juice like sweet fruit juice. Didn’t work.

The issue was that I actually really like coffee — the taste, the ritual, the break, the social construct, my favorite cup. I love it. The solution: decaf. I can have all the good stuff I like without the caffeine. Yay!

joaodarocha profile image
João da Rocha

Thanks for sharing your experience, I might also change to decaf :D

gberthiaume profile image
G. Berthiaume

No scientific articles in your link to back this claim. Not trying to be mean; i just think it is important

irby profile image
Matt Irby

I used to drink around 6 cups of coffee a day, sometimes more. I got headaches, fatigued, and overall felt discontent. I've noticed that since I've switched to 2 cups of coffee and substituting the remainder cups of coffee with water, I've felt much more productive at work.

maciejtrzcinski profile image
Maciej Trzciński 🌱🇵🇱 • Edited

Thanks, I have exactly the same problem; I feel tired after 3/4 hours of coding/work.
So, my reading list was:
One thing
Deep work
Essentialism: The Disciplined Pursuit of Less
Atomic Habits

I decided to start my new better work health with that list:

  1. 2 week break
  2. Work 7am-3pm
  3. Create deep work hours

but but your article also opened my eyes with breaks idea. 🙏🔥

nickbulljs profile image
Nick Bull

I see here a decent work done!

My pleasure.

omawhite profile image
Omar White

Nice article these seem like good things to try. A while ago I turned off notifications in general for social media and a few other apps, and despite the productivity boost I find myself a lot happier with out a bunch of notifications all the time.

bakercode profile image

Awesome. I will start today use your system.

nickbulljs profile image
Nick Bull


nicolus profile image
Nicolas Bailly

Good article, I especially like the idea of writing your todolist at the end of the day, so that you can get right to it when you're fresh on the next morning.

One thing I find surprising though is that you started messing with your schedule before turning off notifications. For me that's the very first thing any developer should do. If you're working with notifications on you're not working, you're just keeping yourself busy until the next notification pops up.

schmelto profile image
Tom Schmelzer • Edited

Can you recommend some self-development books. BTW great Artikel love it a lot 🤙

nickbulljs profile image
Nick Bull

• Deep Work
• Atomic Habits
• Principle
• Work Clean
• Flow
• Thinking Fast and Slow

Start with these.

joaodarocha profile image
João da Rocha

Thanks for this article!

I've never thought about breaks "to energize", I always thought they were to quiet my mind a little bit.

ibtsamilahi09 profile image
Ibtasam Hassan

i never thought about that. but now I found the solution for my work. thanks

chen profile image

Thanks for the article. Good read.
Can you elaborate on the wimhof breathing method?

nickbulljs profile image
Nick Bull

Yes, I do Wim Hof breathing when I want to feel more energetic.

For example, when I'm exhausted

darksauce profile image
Khalen Narcease

To anyone reading this thinking wow this is too much, you aren’t wrong. I don’t think anything is this serious. Thanks for sharing though.

eduoc profile image
Eduardo Costa

That's perfect!!