Skip to main content

The biggest effect on code quality

You carefully assembled a team of great developers, a top architect, UX designers, product owners, etc… You are confident that with this team you can tackle any challenge.

However after 2 years working on the project, you have lost a lot of this confidence. The list of requested features keeps growing, existing functionality needs to be reworked because the business needs have evolved, and people work longer and longer days to still reach the predicted deadline.

What started as workarounds to reach the end goal faster has evolved to just work. Workarounds are no longer the exception but became the rule.

The solution becomes less and less stable and bugs are appearing everywhere. What is going on?

Aha, we just discovered the biggest impact on code quality. It is not the skills of the team, neither the programming language or technologies they use, it is something else.

The answer is ‘avoiding crunch mode’.

Crunch mode, also known as crunch time, describes working extra hours for extended periods to finish a project or meet a deadline. During crunch time, developers often put in intense effort to ensure timely delivery.

Studies have shown that developers who work a lot of over time causing sleep deprivation are 44% less productive. A sector which is notorious for its “crunch time” is the gaming industry. A lot of games where developers were pushed to reach the deadline resulted in buggy released and bad reviews.

Crunch is a failure of project management.

Ian Schreiber, assistant professor at the Rochester Institute of technology talked about the physiological effects of crunch time. He explains that it can even go so far that your productivity goes into the negative:

Once you get past 60 hours, your cognitive function is actually worse than someone who wasn't working at all.


As a counter movement, a game studio CEO explicitly introduced a “no-crunch” policy.

So next time your project manager on an already late project asks you to "do the extra mile", take it literally. Put on your running shoes, run until your head is clear and take a good night of sleep. The impact will be much higher than crunching yourself from deadline to deadline.

Popular posts from this blog

Podman– Command execution failed with exit code 125

After updating WSL on one of the developer machines, Podman failed to work. When we took a look through Podman Desktop, we noticed that Podman had stopped running and returned the following error message: Error: Command execution failed with exit code 125 Here are the steps we tried to fix the issue: We started by running podman info to get some extra details on what could be wrong: >podman info OS: windows/amd64 provider: wsl version: 5.3.1 Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:2655: connectex: No connection could be made because the target machine actively refused it. That makes sense as the podman VM was not running. Let’s check the VM: >podman machine list NAME         ...

Cache stampede: when our cache turned against us

While investigating some performance issues, we ran into an ASP.NET Core API that cached a fairly expensive aggregation query for 60 seconds. Under normal load, that was fine: one request rebuilds the cache, everyone else reads from it. Under peak load, dozens of requests would arrive in that same expiry window, all see a cache miss, and all fire the same expensive query in parallel. The database didn't like that. That was the moment when our caching layer stopped helping and started hurting. A burst of requests comes in at the same time, all miss the cache, and all go hammer the database or the downstream API at once. That's a cache stampede . The cache was supposed to protect our backend, and for a few hundred milliseconds it did the opposite. Why this happens IMemoryCache.GetOrCreate (and its async sibling) looks like it protects you, but it doesn't add any locking on its own. Look at the naive version: public async Task<Report> GetReportAsync(string key) ...

A complex system designed from scratch never works

A few years ago, I worked as an architect on a big mainframe rewrite. I still count it as one of my failures. Not because the technology was wrong, but because I couldn't convince the management team to simplify the approach. Years later, the organization is still struggling to get the new system up and running. I left the project at the time, because I couldn't put my name behind an approach that would take very long and cost a lot of money without a working system to show for it along the way. Gall’s Law That memory keeps coming back to me, because it's a textbook case of Gall's Law playing out in real life. Gall's Law , from John Gall's Systemantics , states it plainly: A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works, and it cannot be patched to make it work. You have to start over with a simple system that works. What does that mean in practice,...