My Top 3 Tips for Staying Focused
Tags: beginners, codenewbie, productivity, 100daysofcode
Published: 2023-06-20 12:45:46

## What I learned from three rounds of #100DaysOfCode

### Intro

Hello and welcome to another blog post for [Anthony’s Techie Thoughts](https://ananfito.hashnode.dev/)! If you’re new here, my name is Anthony and I’m studying programming to make a career change from mathematics teacher to frontend web developer. In my blog posts, I reflect on my journey and share things I’m learning along the way. You can find me on [Mastodon](https://hachyderm.io/@infinifito), [GitHub](https://github.com/ananfito), [LinkedIn](https://linkedin.com/in/anthonynanfito/), [Hashnode](https://hashnode.com/@ananfito), [DEV.to](http://DEV.to), and [CodeNewbie](https://community.codenewbie.org/ananfito).

In this blog post, I’ll share my top three tips for staying focused while studying or coding. These came out of a reflection after completing a third round of the [#100DaysOfCode challenge](https://www.100daysofcode.com/). These techniques worked for me and they might work for you. Feel free to take what vibes with you and toss the rest. Alright, let’s get to the tips!

### Tips for Staying Focused

#### Tip #1: Turn off notifications 🔕

[![Red and white neon sign with a heart and zero.](https://images.unsplash.com/photo-1554177255-61502b352de3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80 align="center")](https://unsplash.com/photos/xv7-GlvBLFw)

*Image Credit:* [*Prateek Katyal*](https://unsplash.com/@prateekkatyal)

If you’re looking to stay focused and, perhaps, get into a state of [flow](https://en.wikipedia.org/wiki/Flow_(psychology)), then you’ve got to eliminate distractions. Apart from choosing a quiet working environment, this means turning off notifications on your devices (e.g., phone, tablet, computer) for the duration of your work session. The last thing you want is to hear a ‘ding’ and then get pulled down a virtual rabbit hole and lose valuable work time. Your future self will thank you.

Turn off the notifications and, if you can, put your phone out of arm’s reach. I’ve found that even if I pick up my phone, even when it’s on silent, I can still get sucked into something distracting. So I’ve started following the motto of “out of sight, out of mind” by placing my phone out of arms reach, but still where I can hear my interval timer go off (more on that in Tip #3).

#### Tip #2: Listen to relaxing music 🎶

[![Close up shot of a record on a turntable with the needle resting on the record. ](https://images.unsplash.com/photo-1458560871784-56d23406c091?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80 align="center")](https://unsplash.com/photos/5gn2soeAc40)

*Image Credit:* [*Adrian Korte*](https://unsplash.com/@adkorte)

Jazz, Classical, Lo-Fi, whatever floats your boat or, in this case, wiggles your eardrums. Choose some music that puts you at ease and helps you focus. I prefer music without any words otherwise I find it distracting. Any else perform tiny desk karaoke? No, just me. Okay, moving on!

Bonus music-listening tips:

* Use headphones to block out surrounding noise
    
    * This is especially helpful if you’re somewhere like a cafe or a busy office environment.
        
    * I’ve also found that when others see me with headphones on it signals to them that I’m focusing on important work and don’t want to be disturbed.
        
* Listen to the same song on repeat
    
    * This might sound a little whacky, but having it on repeat lets your brain worry less about the patterns in the music and more about the task you’re trying to complete (because yes, your brain is using energy to analyze the patterns in music even if you’re not conscious of it)
        

#### Tip #3: Use an interval timer ⏲️ to practice the Pomodoro 🍅 Technique

[![Tomatoes lined up on a window shelf in front of a blurred background](https://images.unsplash.com/photo-1540829414482-5f8ef8834d85?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1185&q=80 align="center")](https://unsplash.com/photos/0dAREtlOGlE)

*Image Credit:* [*Slejven Djurakovic*](https://unsplash.com/@slavudin)

In case you’re not familiar with the [Pomodoro Technique](https://en.wikipedia.org/wiki/Pomodoro_Technique), here’s a quick overview:

* Set a timer for 25 minutes and work until the timer goes off
    
* Take a quick break before setting the timer again and continuing your work
    
* Repeat 3-4 times or until your task is complete
    

There’s plenty of room for variation within this technique to tweak so it fits your needs. I use an app called [Interval Timer](https://apps.apple.com/us/app/interval-timer-hiit-workouts/id406473568) on my iPhone where I’ve set up three different Pomodoro timers. This is an app designed for HIIT workout timers, but I found it useful in this situation as well. I like this better than using the standard timer that came with my phone because I can customize both the time spent working on a task and the time spent taking a break.

Here are my three Pomodoro timers:

* **Short Session**: Two 20-minute work sessions with a 3-minute break in between each session (46 minutes total).
    
* **Medium Session**: Three 20-minute work sessions with a 3-minute break in between each session (1hr 9m total).
    
* **Long Session**: Five 25-minute work sessions with a 5-minute break in between (2hr 30m total).
    

I’ll select one of these timers based on how much time I have to study. This helps me use my time effectively and stay focused. When the timer starts, I get to work and when the session ends I take a quick break. During the break between work sessions, I like to get up and move around. I will either stretch or do bodyweight exercises (e.g., push-ups) to stay active and not be seated at a computer for too long. I found this also helps with eye strain too. During the break when I get up and move, I also make a point to go look out a window.

### Thanks for reading

Thanks so much for reading this post. I hope you found it useful.

These are the top three techniques I’ve used over the past three rounds of the #100DaysOfCode challenge. They’ve helped me stay focused and get into a flow state which has allowed me to learn many new skills for my career change.

**What techniques do you use to stay focused while you code 👨‍💻 or study 📖?** Leave your suggestions in the comments below 👇🏼. Hearing your thoughts 💭 makes this more of a conversation and helps us learn together.