Start Your Project With a Walking Skeleton

14. April 2018
Kategorien
Newsletter abonnieren

Start your project with a Walking Skeleton

In order to reduce risk on large software development projects, you need to figure out all the big unknowns as early as possible. The best way to do this is to have a real end-to-end test with no stubs against a system that’s deployed in production.

You could do this by building a so-called Walking Skeleton, a term coined by Alistair Cockburn. He defined it as a tiny implementation of the system that performs a small end-to-end function. It need not use the final architecture, but it should link together the main architectural components. The architecture and the functionality can then evolve in parallel. A similar concept called “Tracer Bullets” was introduced in The Pragmatic Programmer.

A Walking Skeleton is a tiny implementation of the system that performs a small end-to-end function. It need not use the final architecture, but it should link together the main architectural components. The architecture and the functionality can then evolve in parallel.

If the system needs to talk to one or more datastores then the walking skeleton should perform a simple query against each of them, as well as simple requests against any external or internal service. If it needs to output something to the screen, insert an item to a queue or create a file, you need to exercise these in the simplest possible way. As part of building it, you should write your deployment and build scripts, set up the project, including its tests, and make sure all the automations are in place — such as Continuous Integration, monitoring, and exception handling. The focus is the infrastructure, not the features. Only after you have your walking skeleton should you write your first automated acceptance tests.

This is only the skeleton of the application, but the parts are connected and the skeleton does walk in the sense that it exercises all the system’s parts as you currently understand them. Because of this partial understanding, you must make the walking skeleton minimal. But it’s not a prototype and not a proof of concept — it’s production code, so you should definitely write tests as you work on it.

High Risk First 

According to Hofstadter’s Law, “It always takes longer than you expect, even when you take into account Hofstadter’s Law”. This law is valid all too often. It makes sense than to work on the riskiest parts of the project first, which are usually the parts that have dependencies: on third-party services, on in-house services, on other groups in the organization you belong to. It makes sense to get the ball rolling with these groups simply because you don’t know how long it will take and what problems should arise.

Making changes to architecture is harder and more expensive the longer it has been around and the bigger it gets. We want to find mistakes early. This approach gives us a short feedback cycle, from which we can more quickly adapt and work iteratively as necessary to meet the business‘ prioritized list of runtime-discernable quality attributes. Assumptions about the architecture are validated earlier. The architecture is more easily evolved because problems are found at an earlier stage when less has been invested in its implementation.

The bigger the system, the more important it is to use this strategy. In a small application, one developer can implement a feature from top to bottom relatively quickly, but this becomes impractical with larger systems. It is quite common to have multiple developers on a single team or even on multiple, possibly distributed teams involved in implementing end-to-end. Consequently, more coordination is necessary.

No Shortcuts

It’s important to stress that until the walking skeleton is deployed to production (possibly behind a feature flag or just hidden from the outside world) you are not ready to write the first acceptance test. You want to exercise your deployment and build scripts and discover as many potential problems as you can as early as possible. The Walking Skeleton is a way to validate the architecture and get early feedback so that it can be improved. You will be missing this feedback if you cut corners or take shortcuts.

In a nutshell: Start with a Walking Skeleton, keep it running, and grow it incrementally.

Tags

Das könnte Sie auch interessieren

Boards Must Understand Technology. Period.

1. Juli 2024

Reflecting on the 2024 Swiss Board Day in Bern it has become even more clear to me that understanding the current technological landscape and its associated opportunities, challenges, and risks is now essential for both executive and non-executive board members. Equally important is staying informed about governance issues related to these technologies, including regulatory challenges

Weiterlesen

How To Select a Good Project Manager for Your Large and Complex Transformation Project

14. Juni 2024

Most transformation programs do not fail in execution. They fail in selection. Long before the first milestone is missed, the trajectory is already set by one decision that is often treated as routine. The choice of the project manager. For a sponsor, this is not a staffing decision. It is a control decision. The project

Weiterlesen

How Your Rollout in Waves Can End in a Tsunami

14. November 2022

Multinational system implementations rarely fail because of technology. They fail because the rollout model collapses under its own operational reality. One of the most common triggers is a misunderstanding of what a rollout in waves actually implies. Most organizations believe they are reducing risk when they move away from a big bang deployment. In practice,

Weiterlesen

White Elephant Stampede: Case Studies in Policy and Project Management Failures

15. Oktober 2022

This month one of the book projects I have been part of has been published by Connor Court Publishing in Australia.  The book is titled «White Elephant Stampede: Case Studies in Policy and Project Management Failures«, and it examines the seemingly endless cavalcade of projects that fail to meet their objectives, cost more than expected and

Weiterlesen

Doing Something That’s Never Been Done

14. August 2022

Executives, project sponsors, project managers, and steering committee members can learn a lot from how some deep technology startups approach their projects. This isn’t true for all kinds of projects, but it is for every project that involves doing something that hasn’t been done before and has a high risk-reward profile. This isn’t another lean

Weiterlesen

Why Are Your Best People Not Working on This?

7. August 2022

Large organizations do not lose control of critical transformation programs because they lack capability. They lose control because they systematically keep their best people out of them. It happens again and again. The organization launches a multi-million ERP, CRM, HCM, or core banking program. The stakes are obvious. If it fails, it disrupts operations, damages

Weiterlesen

Don’t Forget SaaS Performance Testing!

7. Juli 2022

Most SaaS implementations do not fail because they lack functionality. They fail because they are too slow to use. That sounds trivial. It is not. Performance is one of the few factors that directly determines whether a system will be used at all. If users have to wait after every click, every search, every transaction,

Weiterlesen

Changing Technology Is Easy; Changing Behaviour Is Not.

2. September 2021

This is an article I have written for one of my clients. You can find the original article here.   Creating a modern workplace is key to digital transformation. If you’re embarking on such an initiative, remember that changing technology is easy, but changing behaviour is not. Begin with the end in mind, ask what you

Weiterlesen

The Biggest Challenge of Postmodern ERP – Cloud Integrations

2. Mai 2021

ERP never died. It changed form. When Gartner coined the term “enterprise resource planning” in 1990, it described a very specific idea. One integrated system to run the core of the business. Finance, HR, manufacturing, procurement, all connected through a single data model and a single process backbone. For a long time, this model dominated.

Weiterlesen

Create a Lighthouse to Drive Your Transformation

13. März 2021

I’m a firm believer in transformation through delivery. In my experience real change cannot be implemented without a vehicle that is used to drive it through the organisation and crash through existing barriers.  Transformation is far more than just deploying new technologies for the sake of it. A genuine competitive advantage can only be gained

Weiterlesen