How to Prevent Interruptions When Coding ๐Ÿšซ๐Ÿ“ฑ

Devang TomarDevang Tomar
5 min read

Iโ€™ll 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, itโ€™s 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.

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.

Once the timer starts, thereโ€™s no way to undo the block until the timer runs out, so itโ€™s a good option if you need to enforce discipline.

๐Ÿ”— Link: https://github.com/SelfControlApp/selfcontrol/

2. LeechBlock ๐Ÿ›๐Ÿšซ

This browser extension may be something youโ€™ve 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:

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 aside from r/ProgrammerHumor :

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

In this manner, Redditโ€™s distracting portions are blocked but its more beneficial and beneficial portions are accessible.

I strongly advise you to read the FAQ for additional advice.

๐Ÿ”— Link: 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.

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

๐Ÿ”— Link: 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.

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

๐Ÿ”— Link: https://freedom.to/

5. Distraction-Free YouTube ๐Ÿ“บ๐Ÿšซ

Iโ€™m aware that utilizing YouTube in any way makes it impossible to complete any task. Well, itโ€™s 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:

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

Dull, huh? As it ought to be! ๐Ÿ˜Ž

๐Ÿ”— Link: 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.

The app also has an open-source version called Plant a Tree, which is available on F-Droid. Itโ€™s similar to the main Forest app, but itโ€™s free and doesnโ€™t have any ads or in-app purchases.

๐Ÿ”— Link: https://www.forestapp.cc/

7. Minimalist Twitter ๐ŸฆโŒ

I understand how we all feel about Twitterโ€Šโ€”โ€Šitโ€™s the devil, itโ€™s a snake pit, and nothing good ever occurs thereโ€Šโ€”โ€Šbut 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 donโ€™t.

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

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 appโ€™s continual barrage of unsolicited recommendations? Perhaps you want to write that clever tweet for the day and donโ€™t even want to look at your feed at all (Zen Mode). Minimalist Twitter has you covered no matter what youโ€™re trying to avoid (or not). I adore this addon, and ever since I started using it, Iโ€™ve found myself clicking less randomly. Iโ€™ve 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

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.

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

๐Ÿ”— Link: https://github.com/RescueTime/rescuetime_linux_uploader

There you have it, then.

These add-ons and apps can aid in your ability to concentrate in todayโ€™s busy world. Hope itโ€™s useful! ๐Ÿ’ช๐Ÿป

Connect with Me on Social Media

๐Ÿฆ Follow me on Twitter: devangtomar7
๐Ÿ”— Connect with me on LinkedIn: devangtomar
๐Ÿ“ท Check out my Instagram: be_ayushmann
โ“‚๏ธ Checkout my blogs on Medium: Devang Tomar
#๏ธโƒฃ Checkout my blogs on Hashnode: devangtomar
๐Ÿง‘โ€๐Ÿ’ป Checkout my blogs on Dev.to: devangtomar

0
Subscribe to my newsletter

Read articles from Devang Tomar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Devang Tomar
Devang Tomar

๐Ÿ‘จโ€๐Ÿ’ป Creative Software Engineer with 5 years of experience in domains including CI/CD, Networking, Cloud computing, Development, Virtualization, and Linux administration. Passionate about developing forward-thinking solutions to tomorrow's productivity problems. Resourceful and adaptable approach to challenges. ๐Ÿคนโ€โ™€๏ธ Skill stack: โ€ข Cloud โ˜๏ธ : Azure, GCP โ€ข Databases ๐Ÿ—ƒ๏ธ : MySQL, PostgreSQL, Elasticsearch โ€ข Language ๐Ÿ : Python, JavaScript โ€ข Configuration management, deployment & IaC ๐Ÿ›ก๏ธ : Ansible, Terraform โ€ข Container and orchestration ๐Ÿณ : Docker, Kubernetes โ€ข Version Control ๐Ÿ—‚๏ธ : Git, GitHub โ€ข CI/CD ๐Ÿ”„ : Jenkins, GitHub actions, ArgoCD โ€ข Continuous Monitoring ๐Ÿ“Š : Grafana, ELK, Prometheus ๐Ÿ“š Currently learning: Web development, MLOPS