The importance of flow state for developers

You are receiving this email because you subscribed to microservices.io.


Considering migrating a monolith to microservices? Struggling with the microservice architecture? I can help: architecture consulting and workshops. Learn more

My Explore DDD conference workshop, April 14-15, 2025, Denver - Designing microservices: responsibilities, APIs and collaborations. Early bird discount ends March 7th. Learn more and enroll.

Enroll in my distributed data pattterns (aka. service collaboration patterns) self-paced bootcamp. Use coupon RPPPOGHM to sign up for $95 (valid until March 26th, 2025). Learn more and enroll.


The importance of flow state for developers

Flow state, or to be more precise, ample opportunities for flow state, is one of the three elements of a great Developer Experience (aka. DevEx).

Great Developer Experience

In this article, I will:

  • Explain the concept of flow state
  • Explore why it’s important
  • Describe the obstacles to flow that are all too prevalent in the modern world
  • Discuss what you can do to increase opportunities for flow

What is flow state?

To quote Wikipedia:

Flow in positive psychology, also known colloquially as being in the zone or locked in, is the mental state in which a person performing some activity is fully immersed in a feeling of energized focus, full involvement, and enjoyment in the process of the activity.

Flow is not a new concept. While I first read about it in the 1990 book Flow by the psychologist Mihály Csíkszentmihályi, he actually first wrote about the concept in 1975.


Why is it important?

Flow is important because, to quote DevEX: What Actually Drives Productivity:

Frequent experiences of flow state at work lead to higher productivity, innovation, and employee development. Similarly, studies have shown that developers who enjoy their work perform better and produce higher-quality products. Interruptions and delays—which relate to the feedback loops dimension—are important factors that hinder a developer’s ability to experience flow state. Other factors include maintaining autonomy over work structure, having clear team and project goals, and engaging in stimulating and challenging tasks.

In short, enabling flow for developers boosts productivity, quality, and overall job satisfaction.

Obstacles to flow state

Sadly, the modern world presents many obstacles to achieving and maintaining flow.

Constant interruptions

Constant interruptions are a major obstacle to flow. It often requires fifteen to twenty-five minutes—or sometimes even longer—of uninterrupted work to become fully immersed in a task. This means that the key elements of the modern work environment - constant notifications, phone calls, messages, endless meetings and a noisy open-plan office - make it difficult to find the large blocks of focused time necessary to enter and maintain flow.

Smartphones

Smartphones are especially problematic. Not only do they actively interrupt you with alerts, but they also passively tempt you with “infinity pools” of distraction, such as social media.

Slow tools

Slow development tools can interrupt flow. For example, if you have to wait for more than 10 seconds for a tool to complete an action, you will most likely lose your train of thought and struggle to regain your focus.

Slow feedback loops

Problems with the other elements of the DevEx triangle - feedback and cognitive load - can also be obstacles to flow. It’s important for a work environment to have fast feedback loops to enable flow. Slow development tools are a specific example of a slow feedback loop. Other examples include delayed code reviews, slow builds and tests, and slow deployments.

Pair/mob programming is one way to accelerate feedback loops and maintain flow. Unlike the traditional yet slow pull request review mechanism, pair/mob programming provides immediate feedback on your code. Another way to maintain flow is to have fast automated tests that run locally within your IDE and provide fast feedback on your code changes. Ideally, you should be able to verify a change within a few seconds.

High cognitive load

A work environment that is unnecessarily complex and has a high cognitive load can also prevent flow. On the one hand, tasks need to be challenging to engage your full attention. Yet tasks that are too challenging - i.e., have excessive cognitive load - can be too stressful and prevent flow. It’s important for a work environment to have a minimal accidental cognitive load to enable flow.

Action items for flow

It’s essential to recognize that creating an environment that enables flow is both an individual and a collective endeavor. There are practical steps you can take personally, such as managing your own notifications and environment. Engineering leaders also play a critical role in creating conditions that enable every team member to experience flow. Let’s start with the personal action items.

Personal action items

On a personal level, you should eliminate as many distractions as possible. Turn off unnecessary notifications on every device you use for work and consider placing your phone in another room. Also, consider setting specific times for checking email and social media. These simple steps can significantly reduce the temptations that pull you out of a productive flow.

Also, don’t multitask. There’s ample researching showing that it only provides the illusion of productivity. What’s more it severely disrupts flow by fragmenting focus, and increasing cognitive load. To achieve flow you need to work on tasks sequentially for extended periods of time.

Two great books that I’ve found useful are:

Of course, there is only so much that you can do as an individual since your organizations’ policies and practices also play a significant role in enabling or preventing flow.

Action items for engineering leaders

For engineering leaders, the challenge is to cultivate an environment that supports flow for every team member. Periodic DevEx surveys should assess how well your organization is doing in enabling flow.

According to DevEX: What Actually Drives Productivity

To improve DevEx, teams and organizations should focus on creating the optimal conditions for flow state. Disruptions should be minimized by clustering meetings, avoiding unplanned work, and batching help requests. Leaders should also recognize that flow state depends on creating positive team cultures that give developers autonomy and opportunities to work on fulfilling challenges.

In particular, improving the other elements of DevEx - accelerating feedback loops and reducing cognitive load - has the added bonus of enabling flow.

Need help with accelerating software delivery?

I’m available to help your organization improve agility and competitiveness through better software architecture: training workshops, architecture reviews, etc.

Learn more about how I can help

Older messages

Reminder: What developer productivity metrics actually measure

Thursday, February 27, 2025

You are receiving this email because you subscribed to microservices.io. Considering migrating a monolith to microservices? Struggling with the microservice architecture? I can help: architecture

Microservices rules: what good looks like

Thursday, February 27, 2025

You are receiving this email because you subscribed to microservices.io. Considering migrating a monolith to microservices? Struggling with the microservice architecture? I can help: architecture

Reminder: Microservices rules: what good looks like

Thursday, February 27, 2025

You are receiving this email because you subscribed to microservices.io. Considering migrating a monolith to microservices? Struggling with the microservice architecture? I can help: architecture

What developer productivity metrics actually measure

Thursday, February 27, 2025

You are receiving this email because you subscribed to microservices.io. Considering migrating a monolith to microservices? Struggling with the microservice architecture? I can help: architecture

Reminder: Microservices ate my application - an anti-pattern

Friday, February 14, 2025

You are receiving this email because you subscribed to microservices.io. Learn about the service collaboration patterns (Saga, API composition, etc) in my online, self-paced bootcamp. It's

You Might Also Like

Simplify Kotlin Error Handling

Thursday, March 6, 2025

View in browser 🔖 Articles Goodbye try-catch, Hello runCatching! Exception handling in Kotlin just got cleaner! This article explores how runCatching can replace traditional try-catch blocks, making

JSK Daily for Mar 5, 2025

Wednesday, March 5, 2025

JSK Daily for Mar 5, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Unions and intersections of object types in TypeScript In this blog post, we explore what

Daily Coding Problem: Problem #1709 [Medium]

Wednesday, March 5, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an array of integers, write a function to determine whether the array

How Swiss Tables make Go 1.24 faster

Wednesday, March 5, 2025

Plus a way to call external library functions without Cgo. | #​544 — March 5, 2025 Unsub | Web Version Together with pgAnalyze Go Weekly Faster Go Maps with Swiss Tables — One of Go's newest

Mapped | European Fertility Rates by Country 👶

Wednesday, March 5, 2025

The population replacement threshold is a fertility rate of 2.1. In 2025, all of Europe, except one small nation, is well below that level. View Online | Subscribe | Download Our App Invest in your

Trust in JS supply chain; sync vs. async code; JIT vulnerabilities; parseInt() and keycap emojis; V8

Wednesday, March 5, 2025

We have 10 links for you - the latest on JavaScript and tools Secure your JavaScript dependencies. socket.dev Sponsor Open source code makes up 90% of most codebases. Socket detects what traditional

This beefy phone is a projector too 📽️

Wednesday, March 5, 2025

Biggest tech opps; How Firefox changed; Drone flying tips -- ZDNET ZDNET Tech Today - US March 5, 2025 GOTRAX 4 electric scooter A smartphone that's also a projector? I tested it, and it's

⚙️ Self-driving Ubers

Wednesday, March 5, 2025

Plus: A trade war, and AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 03/05/2025

Wednesday, March 5, 2025

New blogs from Syncfusion ® S&P 500 Returns After Rate Cuts: Visualized Using a Flutter Heatmap By Kompelli Sravan Kumar Kompelli Lakshman Learn how to visualize the S&P 500 returns after