Using Prototypes as the Specification

Sometimes it is possible that a candidate prototype can serve as the specification. But only sometimes, and regardless of what we say here, this should not be used as your mainstream approach. There are too many opportunities for a prototype to mislead the developers, which would defeat the point of using it as a specification .

However, when your project is smaller and not mission critical, and when the application domain is well understood by the developers, you might get away with this. You probably will have to add some more detail, but judiciously using a prototype as the specification can sometimes work .

It is worth repeating that prototypes, as we are suggesting you use them, are intended to ensure that you are solving the right problem. They help you interrogate the customer about his problem, not his solution .

Let’s say that you have been prototyping your customer’s problem and by now have several prototypes. (See Figure 15.1 .)

Images

Figure 15.1

By now, you have several prototypes of the different business events. Some of these might be used as the specification for development.

We have suggested that most of your prototypes are about one business event. The business event triggers the work to respond with a chunk of functionality (which we call a “business use case” or “BUC”). The BUC represents one transaction from the point of view of the outside world—your external customers or similar. Because it is a discrete unit of functionality, it is an ideal unit for development .

Let’s see how this might work .

The Prototype as the Specification

Let’s look at an example. This one is a neobank and it wants to add a facility to help customers save money for a special purpose: a vacation, a house deposit, an engagement ring, or something else. The team built the prototype shown in Figure 15.2 . They proposed to call the feature a “pot,” as in the pot of gold at the end of the rainbow. The pot is a separate account within the customer’s main account and is treated individually. That is, it does not show up as part of the customer’s balance, and it is not available to be spent unless the customer deliberately releases the pot. Pots earn interest at a slightly higher rate than regular savings accounts.

Images

Figure 15.2

The prototype for a savings pot feature for the neobank. The team chose to use a process model to show the candidate functionality.

The activities in the prototype start with the bank customer requesting to open a pot . This activity would include some checks that a pot is appropriate. For example, if the customer has a balance of, say, only $5, then there is little point in him having a pot. There will be some business rules that apply to this activity. We discuss business rules fully in Chapter 24 , Other Trawling Techniques , but briefly they are the “laws” that the business has established for itself. You would need to find all the relevant business rules and attach them to this activity for the developers to know what to build.

The next activity is the customer naming his pot . This is to give the customer a connection to the particular purpose for which he wants to set aside money. It would be more inspiring to have a pot named “Tropical Holiday” than one simply named “pot.” If the customer wants it, a start date for the pot can be set. You would attach this brief description along with any other details to this activity.

Then the customer sets the rules for the pot . For example, he might want to lock away the money (from himself) until vacation time rolls around, or Christmas is on the horizon, or there is a special birthday or anniversary coming up, or he is just saving for some luxury item. You would have to add a description of this activity for the developers to build the right solution.

The deposit amounts in the final activity specify whether an amount is to be deposited in the pot whenever his salary is banked, or if payments made from the main account are rounded up and the spare change goes into the pot. There can be other ways of building the pot which the customer specifies here. Again, you need to describe this activity in enough detail for the developers to build the right solution and add any business rules that apply to this activity.

So far, so good. You could almost hand this prototype to the developers, with the addition of the details mentioned above. You would also add information about how the pot connects to the existing customer accounts database. There will be some security issues, the look and feel must be consistent with the rest of the bank’s app, there might be some operational issues, and so on. It would be worthwhile to look at the Volere Requirements Specification Template (see Appendix A ) and use it as a checklist for the other non-functional requirements.

This candidate solution is relatively straightforward and should be able, with the enhancements mentioned above, to be handed over to the development crew.

However, before doing so, you should consider the risks involved. If this piece of business is crucial to the existence of the organization, then under no circumstances should you consider the prototype to be the specification. If your business rules are numerous and complicated, then this shortcut is not for you. On the other hand, if the domain is well-understood, the developers are familiar with the type of application to be built, and the product owner is confident that the right solution will be built, then go ahead. Whatever you do, don’t do it without honestly considering the risks.

What to Do with the Prototype

The preceding chapters looked at building and probing prototypes. So now, let’s see how you make use of what you have been reading. For the sake of convenience, the Volere process that has also been discussed elsewhere is shown again in Figure 15.3 .

Images

Figure 15.3

The Volere process showing its activities

In preceding chapters, we have been talking about using the goals and the scope established by the Project Blastoff to build prototypes as a way of exploring the business problem. We must stress that the intention of these prototypes is to prompt your customer to give you (and possibly himself) a better, more correct understanding of his problem.

The prototypes are throwaways. Once they have helped you discover the real business problem, they have served their purpose. Normally, you would switch to trawling for requirements to find the details of the problem space.

However, in some cases, as we have just seen, prototypes can have a further purpose. You have several options for how to proceed, as illustrated in Figure 15.4 .

Images

Figure 15.4

The options available for further use of a prototype. For option A, the prototype is discarded, but its scope and problem are trawled. Option B’s prototype is used during the Trawling activity, and for option C, the prototype can be used for Designing and Developing .

Normally, when the prototype has done its job and you are satisfied that the real business problem has been discovered, you would trawl the problem space exposed by your prototype. You can discard the prototype —it has done its job. This situation is shown as option A in Figure 15.4 .

Normally, the prototype would reveal the scope of the business problem, which should be in accordance with the scope determined during the project blastoff. However, it is not uncommon to find that the initial scope needs to be adjusted because of discoveries made during the prototyping and probing efforts. It is also quite possible that your prototyping has changed your understanding of the business problem, and that requires the scope to be reworked.

Typically, you would have been building your prototypes, one for each business event. We discussed business events in Chapter 7 , Business Events , when we were discussing the Project Blastoff. If you jumped over that part, it is worth revisiting it for the discussion about business events. They are the backbone of your requirement and development efforts. As each business use case is a discrete unit of functionality for the complete solution, you can treat each prototype as a separate case when deciding what to do with it.

Option B in Figure 15.4 is when the prototype has revealed the real problem and its scope, and the solution demonstrated by the prototype is a good basis for trawling its requirements. To put that another way, the prototype shows a solution that has the right scope and the right functionality to solve the problem. So, in this case, you keep the prototype as a reference for your trawling when you discover the detailed requirements for that solution.

In some cases, the prototype can be used as a development specification with some additions. This is shown as option C. There is a discussion above on how to do that. Keep in mind when doing this that your prototype must fit with the overall design of the business solution. It is obviously necessary to have consistency between the various parts of the total solution.

Subsequent chapters discuss the activities mentioned above. Please jump to whichever of them would be most useful to you. But before you leave, there is one more thing to consider.

Evolutionary and Sacrificial Prototypes

The preceding chapters have discussed building sacrificial prototypes of candidate solutions. The reason for building the prototypes (you should always build several of them) is to propose a solution that might solve the problem. As you probe this candidate solution, you and your customer learn more about the problem. It is sacrificial—you fully intend to discard it if it doesn’t solve the problem or it doesn’t reveal any more of the problem.

You might keep a successful candidate prototype to serve as a focus for the exploration of the business problem. If it illustrates the problem or shows insights that are useful, then add it to your requirements repository.

However, in some cases your prototype could be evolutionary . See Figure 15.5 .

Images

Figure 15.5

The suggested way of using prototypes to incrementally build the complete solution

So far, the prototype is a sketch of a solution, a “paper” prototype, if you will. It shows enough of the needed functionality for you or your developers to turn this into a piece of code to make a very rudimentary version of the solution you intend to deliver. You know from your prototyping and probing activities that it is solving the right business problem. The few hours spent prototyping now pay off—you can proceed with complete confidence.

Go back to the customer with this rudimentary version and work with him to refine it. To do this you might need some of the trawling techniques that are discussed in subsequent chapters. The aim is to have your prototype evolve into the delivered solution.

You can think of this process as being both evolutionary and incremental. Each business event evolves into its final form. Then, it is added incrementally to the end solution.

Review

This is a book about requirements. Requirements are a crucial part of any development effort. If the requirements are not right, then your solution cannot be the right one. However, you would like to discover the requirements as quickly as possible. This means developing your requirements to the point that the correct product can be built.

In some cases, it might be possible that the prototypes you built to explore the problem can be a significant part of the requirements. Naturally enough, you need to enhance the prototype with the relevant business rules and the appropriate non-functional requirements. You must be honest about the risk of doing this, but it might be worthwhile.

A further use of your prototype as a specification is when your developers can use it to build a rudimentary version of the intended product, which is subsequently developed iteratively. It is necessary for the customer, and probably other stakeholders, to be closely involved in this iterative development, as each increment of the product serves as a prototype. If the increment does not produce the right result, then you discard it and rework it. Again, you must be aware of the risks associated with this approach.

Your prototypes are intended to be experiments. Sometimes they can be more than that.

This brings us to the end of the prototyping chapters. There are several types of prototypes you can build, and there are several ways of using these prototypes. Experiment with them and decide which is best for you and your project.