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

This Neovim "Plugin" Replaces 40 Others You know the feeling of finding a new improvement to your setup that you KNOW is going to change it completely? "Imagine living your entire life carrying heavy loads on your back dragging things through the road thinking: `well that's just how it is`" - Homo sapiens, before the invention of the wheel That's exactly what coding without mini.nvim feels like once you've experienced its power, especially if you're Neovim setup was closer to vanilla. Will...

This $600 Keyboard's Best Feature Is Also Its Biggest Flaw I always felt like my keyboard was missing something. First, it was the ergonomic split that my wrists craved. Then, when I got my Moonlander, it was the awkward reach for crucial keys (what's up with that thumb cluster ZSA?). Until one day, I stumbled upon a keyboard that seems similar, but is very much different: the Dygma Defy, a keyboard that promised to turn my thumbs into power users. The Defy arrived like a treasure chest....

THIS Is The Terminal For People Who Just Want Things To Work Picture this: You're watching a skilled developer, one that you value their skills, repeatedly hitting the up arrow key, hunting for that command they used yesterday. Then, another senior, pops up three different default terminal windows just to show you their process running, while sending requests from the other, instead of simply splitting their terminal screen. Sound familiar? That's the reality for the vast majority of terminal...