Start with a Walking Skeleton

来源:互联网 发布:日语跟读软件 编辑:程序博客网 时间:2024/06/13 23:06

Start with a Walking Skeleton

Clint Shank

onE vERy uSEFul STRATEgy FoR iMplEMEnTing, verifying, and evolving an application architecture is to start with what Alistair Cockburn calls a walk- ing skeleton. A walking skeleton is a minimal, end-to-end implementation of the system that links together all the main architectural components. Starting small, with a working system exercising all the communication paths, gives you confidence that you are heading in the right direction.
Once the skeleton is in place, it’s time to put it on a workout program. Bulk it up with full body workouts. This means implement incrementally, adding end-to-end functionality. The goal is to keep the system running, all the while growing the skeleton.
Making changes to an 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’s 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 rela- tively quickly, but this becomes impractical with larger systems. It is quite com- mon 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. And naturally, developers implement at a different pace. Some developers can accomplish a lot and in little time while others can spend a lot of time implementing very little. More difficult and time consum- ing efforts should be done earlier in the project.
Start with a walking skeleton, keep it running, and grow it incrementally.
Clint Shank is a software developer, consultant, and mentor at Sphere of Influ- ence, Inc., a software design and engineering services company for commercial and federal clients.

0 0