Introduction
During one of our walks, a good friend of mine shared a thought experiment that I now use in interviews with potential new hires. It reveals several interesting details about how someone thinks about software development. In this blog post, we will go through the experiment and explore potential answers.
Disclaimer
This thought experiment is a hypothetical scenario intended to investigate and have an interesting conversation about software design, implementation, and delivery. There is no correct answer; however, I think some answers are incorrect.
The thought experiment
The software starts with nothing but a few great minds with a good idea and ends when all servers are shut down and the data is deleted. Let’s call the beginning A, and the end Z. In this project, you are given a one-use ticket to cash in a “magical week”. This week doesn't cost you anything in terms of money or energy. None of the team members get more fatigued that month than in any other month; you just suddenly get five weeks in January, for example. When would you “cash in” the week and get more time?

Observations
Timeframe
Up until now, nobody has asked the question: how long is it between A and Z? There is a large difference between a startup idea with approximately 5 weeks of runway until the money runs out and a large enterprise with many years at its disposal.
In other words, what are we optimizing for: a quick validation of a startup´s MVP, or the lifetime of an insurance company’s pricing module, for example?
Kind of software
Just as few ask clarification questions, such as: What kind of software are we building? How many integrations are we talking about? What dependencies do we have on the organization?
If we are building something that requires a very complicated algorithm, then surely that would impact when we cash in the week compared to a CRUD application. Are we talking about many integrations where we run the risk of waiting for third parties? It would be a shame to spend the week only to wait for someone else.
Team
What team are we working with? Is the team ready to go, or does it need training? Do they know the domain upfront? Do they know each other? What is the team dynamic like? Is it an in-house team or an external team? One week is not much time if we are talking about a team that might work together for years. Maybe we should spend the week getting to know each other? That is typically an organic process that might need additional time. None of the answers have looked at the team itself, or whether the magical week could be spent improving how the team is organized and collaborates.
Testing
Many answers say they would have the “magical week” during testing, and often imply that testing is towards the end of the project. What happens if we find a large discrepancy compared to the requirement? Surely, it´s too late to do anything if we have been building for months or years.
There is little point in testing the wrong piece of software, and the sooner we can figure out we are building something wrong, the better. An analogy: let´s say that you are asked to walk 10km. You start walking towards the east. For each step you take, given you should have walked west, it is not only a step in the wrong direction but also a step that adds to the number of steps you need to walk.
Adding some testing at the end, when you have been building the wrong software, does not help that much.

If we test throughout the project and continuously push small features into production, then I think this answer is much better.
Perfect execution
Many answers rely on perfect execution. Not only on the implementation, but on all aspects of software development. All requirements were perfectly captured, documented, and implemented. All integrations worked as expected, and there were no issues with tools, environments, or people.
Equally, many assume we are running the project perfectly with a true agile mindset: asking the customer for feedback throughout the project, cutting down on features that aren't feasible, and continuously pushing to production. This is of course easy to say, but difficult to do.
The “magical week” is typically used to compensate for an isolated problem, e.g., lack of testing. Real software development rarely works that way, because the complexity lies in its many interconnected aspects.
Building the right thing vs building the thing right
None of the answers, including mine, challenge or make room to investigate whether or not we are building the right thing. Maybe the “magical week” could be spent on an MVP to clarify whether we are building something of value at all? We could spend the time after the 0.0.1 release to verify if we bring business value, thus building the right thing.
My answer
First, I gave a list of assumptions, or requirements for project management. I wanted to spend as much time as possible on the initial exploration phase of the project and avoid staffing up the project too soon. In the beginning, there are so many unknowns, and from experience, adding many developers who wait for work only causes stress and increases the project´s burn rate without necessarily increasing throughput. I want to take time with the customer to explore their domain and sub-domains. Identify the required integrations, secure access, map the stakeholders, and prepare the necessary environment. In short, remove as many bottlenecks for the rest of the team up front. No point in adding more programmers waiting for GitHub/GitLab access, for example. During this initial phase, I want to get as much domain knowledge from the customer as possible.
If we are given a fixed set of weeks in this phase and we still get insights, then I would “cash in” the week here. I want to run this phase as long as it takes, all the way until we see that we need to build something to verify assumptions. When we build assumptions upon another assumptions, then it is time to build something.
Then we onboard the rest of the developers, build our first 0.0.1 version with as little software as possible, and push it to production, potentially behind a feature flag. This will validate the deployment pipeline, infrastructure, and any missing access, test our domain knowledge and identify operational procedures and any issues internal to the team or the organization.
If the initial exploration phase can run as long as needed, I would instead cash in the “magical week” after the 0.0.1 release. We can gather more feedback on the initial design, deepen our domain knowledge, test our customer interactions, and identify many bottlenecks. This is also the time to make tough team decisions. Having a set of developers working together for the first time is bound to cause some issues.
Underlying principles
There are a couple of underlying principles in my answer.
More developers do not necessarily make more progress. Adding developers takes time, and if we are all waiting on a single bottleneck, then instead of increasing throughput, we are potentially putting ourselves in a bad position, having spent money without getting working software.
We spend the magical week as early as possible. If the exploration time is capped, then spend the week there. If not, then spend the week after the next phase: 0.0.1 release.
Delivery is a learning mechanism that discovers organizational bottlenecks. It is often not until you actually want to deploy that you discover hidden dependencies on “operations”, regulatory requirements, security settings, and organizational checklists, to name a few.
Conclusion
The magical week is a thought experiment, but the underlying question is very real. Where do we get the most value from investing additional time capacity? My answer is to reduce uncertainty as early as possible, deliver something small, and learn from reality.