Five Essential Focus Principles for Engineers


Focus is a huge problem in modern days.

These days, lots of apps and websites try to grab our attention and keep us hooked.

Most of us know we should resist these distractions. But instead of making a plan, many people just wing it. I used to do that too.

But I’ve had enough. Another Instagram post, YouTube short, or funny meme won’t make me feel good about my day. In fact, they:

  • Make my workday longer.
  • Slow down my progress, bit by bit.

So, I put together some tools and rules to help me stay focused. The last, and most important rule might surprise you.


“Focus intensifies by getting used to NOT being distracted. And can improve with practice.” - “Deep Work”, Cal Newport

This idea comes from one of my favorite books, which I’ve talked about in this newsletter before. Basically, focus is like a muscle—the more you use it, the stronger it gets. Simple idea, but tough to do.

1. Hard block

While the upcoming tips are softer, the first step is a firm one. We need a strong barrier to keep us away from distractions like endless cat memes on Reddit.

There are many ways to block certain websites, from browser extensions to apps. I created my own tool that blocks sites at the system level by changing the /etc/hosts file. This means I can’t just switch browsers to bypass it. It’s still a basic tool and needs more work, but you can check it out here: go-blocksite on GitHub.

In Daniel Kahneman’s book “Thinking, Fast and Slow,” he discusses the concept of the two systems of thought—System 1 and System 2. System 1 operates automatically and quickly, with little or no effort and no sense of voluntary control. Here’s a quote from the book that reflects this idea:

“System 1 operates automatically and quickly, with little or no effort and no sense of voluntary control.” - “Thinking, Fast and Slow”, Daniel Kahneman

I’ve noticed that I automatically sit at my desk and type li into my browser to open LinkedIn, without even thinking about it. I just want to “see what’s up.” Spoiler alert: there’s nothing new on LinkedIn… I was doing the same with fa , ins, you and others, and it had to stop.

2. Pace yourself

A popular method like the Pomodoro timer can work wonders. Many of my friends and colleagues use it and love it. I’ve been pairing it with my favorite work music from brain.fm (brain.fm is a referral link with a discount for yearly subscription).

Although the timer helps, I found I needed more than just that. So, I moved on to the next idea:

3. Pace yourself in public

This, was my game changer. Instead of just using a timer, I started streaming my work sessions. Initially, I used Twitch, but then switched to a private server to keep my screen private. The idea that “someone might be watching” surprisingly made me focus better, as if I was working harder to impress an audience. It really works for me, especially when I’m up against a tight deadline.

Another option for team settings is to have a silent video call with a colleague, or even better, a channel. Think of a Slack huddle where you share your screen for anyone who joins to see.

4. Routine

“Neurons that fire together, wire together.”
- Neuropsychologist Donald Hebb

We’ve discussed how focus can be trained, and creating routines is a key method. By setting up consistent cues, we can teach our brains to enter a focus mode more easily, leading to less resistance and smoother transitions into “flow” states.

To help your brain along, consider establishing a routine with elements like:

  • A specific playlist for focusing.
  • A chosen background, or a clear space.
  • Only essential windows open, such as your IDE and documentation.
  • A physical notepad and pen (yes, really 😉) next to your keyboard for quick notes.

Our brains thrive on consistency. The layout of your workspace, your physical location, and the objects you see all contribute to creating the right mindset for focused work.

5. Cut yourself some slack

Sometimes, no matter how hard we try, our brains just won’t focus. It might be due to a bad night’s sleep, digestive issues, or emotional stress from personal disagreements.

There will be days when the best thing to do is step away.

If you’re at your desk struggling to concentrate and nothing is working, resist the urge to waste time on distractions like YouTube. Instead, take a break.

Go for a walk or switch to a different activity, even if it’s unplanned. This can help refresh your energy and improve your focus when you return.

Remember, it’s okay to give yourself some leeway. If things aren’t flowing, step back, and come back later. Be kind to yourself.

Thanks for reading, as always - feel free to reply to this email with feedback and questions!

Have a great weekend.

Whenever you’re ready, here’s how I can help you:

ESPRESSO FRIDAYS

Every once in a while I send hand picked things I've learned. Kind of like your filter to the tech internet. No spam, I promise!

Read more from ESPRESSO FRIDAYS

In a world where online privacy is increasingly under threat, and content is being blocked based on geo-location, many of us turn to paid VPNs for help. But what if I told you there's a better way? Paid VPN services promise security and anonymity, but they come with their own set of problems. You're entrusting your data to a third party, often with unclear logging policies and potential vulnerabilities. Not to mention the recurring costs that can add up over time If you have a bit of...

When it comes to terminal shells, many developers (myself included) have stuck with what they know or what they've seen others use online, without exploring other options. It's time to venture out and discover the world of terminal shells. Most developers are likely using Zsh, a POSIX-compatible shell, probably with Oh My Zsh on top. But there's a whole spectrum of shells out there, each with its own strengths and quirks. Today, we're going to explore three major players: Bash, Zsh, and Fish....

6 Neovim Plugins I Use To Troll Code Reviewers The Espresso Fridays is brought to you by: Zero To Running a Kubernetes Application Without Weeks of Studying A hands-on Kubernetes guide to deploy your first scaleable application In under 90 minutes you'll: ✅ Learn all the critical Kubernetes basics from a 10-year industry expert ✅ CUT learning time by 60% with a hands-on application deployment walkthrough ✅ Never feel inexperienced again with the hottest technology in the market Start learning...