How to Prevent Interruptions When Coding 🚫📱
Published: 2023-05-20 10:45:19

---
title: How to Prevent Interruptions When Coding 🚫📱
published: true
date: 2023-05-14 14:26:07 UTC
tags: 
canonical_url: https://devangtomar.hashnode.dev/how-to-prevent-interruptions-when-coding-ac28c594e260
---

Ill be the first to admit that I occasionally have difficulties focusing while programming. Despite having good intentions, I frequently err when there is even the tiniest risk of distraction. We need to stay focused on our task for as long as we can without straying away in order to perform well when conducting intense and precise work, such as software development.

As a developer, its easy to get distracted by social media, email, and other websites that can eat up your time and disrupt your workflow. Fortunately, there are several open-source dev software and tools that can help you block distractions and stay focused on your code.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578630629/d2d7eea9-72c0-4afd-ba30-96353c697c6d.png)

Here are some options to consider:

#### **1. SelfControl 🕒👀**

SelfControl is a free and open-source app that lets you block access to specific websites for a set period of time. You simply add the websites you want to block to your blacklist, set a timer, and activate the block.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578632135/b76050ba-2b64-41f0-a82c-1d8bc1108559.png)

Once the timer starts, theres no way to undo the block until the timer runs out, so its a good option if you need to enforce discipline.

🔗 Link: [https://github.com/SelfControlApp/selfcontrol/](https://github.com/SelfControlApp/selfcontrol/)

#### **2. LeechBlock 🐛🚫**

This browser extension may be something youve heard of or perhaps used before. It is one of the quickest and simplest methods for blocking undesirable websites, and it is also free (every tool listed in this post is free).

To help you get started with it, consider these brief tips:

You must first learn how to define prohibited sites effectively. You can define the domains you want to block in the following field on the settings page:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578633347/f5162e4e-b75e-41ec-9e1b-8b838553d508.jpeg)

View the Tip at the bottom, please. There are symbols listed that you can utilize to list more detailed entries. For instance, I would define the following two entries if I wanted to block all subreddits on [reddit.com](http://reddit.com/) aside from r/ProgrammerHumor :

```
*.reddit.com+reddit.com
/r/ProgrammerHumor

```

In this manner, Reddits distracting portions are blocked but its more beneficial and beneficial portions are accessible.

I strongly advise you to read the [FAQ](https://www.proginosko.com/leechblock/faq/) for additional advice.

🔗 Link: [https://github.com/proginosko/LeechBlockNG](https://github.com/proginosko/LeechBlockNG)

#### **3. Cold Turkey 🥶🦃**

Cold Turkey is a productivity tool that helps you block websites, apps, and other distractions on your computer. The basic version of Cold Turkey is free and open-source, and it lets you block websites and apps for a set period of time.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578634686/b03b9d70-d444-476c-9824-080daad52aa4.png)

You can also create custom blocklists and schedules, and even sync your settings across devices.

🔗 Link: [https://getcoldturkey.com/](https://getcoldturkey.com/)

#### **4. Freedom 🕊📵**

Freedom is another productivity app that blocks distracting websites and apps on your computer and mobile devices. The Freedom app has a free and open-source version that lets you block websites and apps for a set period of time.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578636058/827ef985-b780-47fc-85f3-43b40ced80dc.png)

You can create custom blocklists and schedules, and even sync your settings across devices.

🔗 Link: [https://freedom.to/](https://freedom.to/)

#### **5. Distraction-Free YouTube 📺🚫**

Im aware that utilizing YouTube in any way makes it impossible to complete any task. Well, its not really that easy. We frequently have to use websites that can be both helpful and annoying. You may improve your knowledge and skills by using the incredible materials available on YouTube. The software also exploits your compulsiveness by providing video streams with clickbait names and thumbnails.

You can use the Distraction-Free YouTube addon to access YouTube free of all the extraneous frills. After installation, select the YouTube components you want to hide/disable by clicking on the extension tray icon. I personally decide to make using every option my default setting:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578637332/12058798-bdb2-41ba-9fb2-3e5fe14f04b5.jpeg)

This is what my YouTube homepage looks like at all times:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578638789/1f11475c-fb64-46e3-9a36-f5d987b6b27e.png)

Dull, huh? As it ought to be! 😎

🔗 Link: [https://chrome.google.com/webstore/detail/df-tube-distraction-free/mjdepdfccjgcndkmemponafgioodelna/related?hl=en](https://chrome.google.com/webstore/detail/df-tube-distraction-free/mjdepdfccjgcndkmemponafgioodelna/related?hl=en)

#### **6. Forest 🌳🌲**

Forest is a mobile app that uses gamification to help you stay focused. You plant a virtual tree and it grows as you work, but if you leave the app or start using other apps, the tree dies.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578640142/b93a0d3a-811e-46b1-a2fc-18c90377c4f8.png)

The app also has an open-source version called Plant a Tree, which is available on F-Droid. Its similar to the main Forest app, but its free and doesnt have any ads or in-app purchases.

🔗 Link: [https://www.forestapp.cc/](https://www.forestapp.cc/)

#### **7. Minimalist Twitter 🐦**

I understand how we all feel about Twitterits the devil, its a snake pit, and nothing good ever occurs therebut I want to talk about a tool that can help people who use Twitter for networking use it for what they need and stay away from what they dont.

Minimalist Twitter removes many of the annoying features it offers by default, though not all of them. The options menu appears as follows:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578642516/8d4135fb-9d95-4231-9f39-e6ad5b2bbf07.jpeg)

You can see that the extension gives you a lot of freedom in terms of how you want to use Twitter. Want to get rid of pointless statistics like follower and like counts? Tired of the apps continual barrage of unsolicited recommendations? Perhaps you want to write that clever tweet for the day and dont even want to look at your feed at all (Zen Mode). Minimalist Twitter has you covered no matter what youre trying to avoid (or not). I adore this addon, and ever since I started using it, Ive found myself clicking less randomly. Ive had a more meaningful and focused experience than a disorganized and disoriented one.

🔗 Link: [https://chrome.google.com/webstore/detail/minimal-theme-for-twitter/pobhoodpcipjmedfenaigbeloiidbflp?hl=en](https://chrome.google.com/webstore/detail/minimal-theme-for-twitter/pobhoodpcipjmedfenaigbeloiidbflp?hl=en)

#### **8. RescueTime 🕰📊**

RescueTime is a time-tracking and productivity app that monitors how you spend your time on your computer and provides detailed reports and analytics. RescueTime has a free and open-source version that you can install on your computer to track your time and productivity.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578643954/41afd525-607e-44c5-a6c5-1e1e44c9f500.jpeg)

You can set goals for how much time you want to spend on specific tasks or websites, and get notifications when youre spending too much time on non-productive activities.

🔗 Link: [https://github.com/RescueTime/rescuetime\_linux\_uploader](https://addons.mozilla.org/en-US/firefox/addon/rescuetime-for-firefox/)

There you have it, then.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684578645357/05034619-5afb-4077-aa8c-83e91e63a16e.jpeg)

These add-ons and apps can aid in your ability to concentrate in todays busy world. Hope its useful! 💪🏻

#### **Connect with Me on Social Media**

🐦 Follow me on Twitter: [devangtomar7](https://twitter.com/devangtomar7)  
🔗 Connect with me on LinkedIn: [devangtomar](https://www.linkedin.com/in/devangtomar)  
📷 Check out my Instagram: [be\_ayushmann](https://instagram.com/be_ayushmann)  
 Checkout my blogs on Medium: [Devang Tomar](https://medium.com/u/8f5e1c86129d?source=post_page-----e42119a306ca--------------------------------)  
**#** Checkout my blogs on Hashnode: [devangtomar](https://devangtomar.hashnode.dev/)  
**🧑💻** Checkout my blogs on Dev.to: [devangtomar](https://dev.to/devangtomar)