AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Prototypes and patterns

Week 26 · Unit 7.6: Sequencing and pattern recognition · 3 lessons
2

Evolve it or throw it away

Computing 7: Unit 7.6, pp. 182–224
GoalTell an evolutionary prototype from a throwaway prototype and judge which one suits a job.
New words
evolutionary prototype · a whole working version of the program that is improved again and again until it becomes the final productthrowaway prototype · a prototype of one small section of the program that is thrown away once its feedback has been usedfeedback round · one turn of users testing a prototype and the makers using what they said
Explanation

There are two kinds of software prototype. An evolutionary prototype is a whole working version of the program. Users test it, the makers improve it and a new version is released. Each turn of testing and improving is a feedback round, and the rounds repeat until the prototype has grown into the final program. A throwaway prototype is only a small section of the program. Users test that section and give feedback. Then the section is thrown away, and the final program is built using what the makers learnt. The evolutionary way wastes no work, but a poor first design may need many changes. The throwaway way finds problems early in a small, cheap piece, but the prototype work is not reused.

EvolutionaryThrowaway
What users testthe whole programone small section
After the feedbackimprove it and release a new versionthrow it away and build the real thing
Good pointno work is wastedmistakes are found in a small, cheap piece
Weak pointa poor first design needs many changesthe prototype work is not reused
Worked examples
A swimming club builds a complete score-keeping program with three screens. Members use it for a month, and the makers fix the problems and release version 2, then version 3. Each version grows from the one before, so this is an evolutionary prototype.
StepWhat happens
1Build only the “choose a stop” page
2Passengers test the page
3Feedback: the list is too long
4Throw the page away
5Build the real page with a search box
A bus company is planning a ticket program. It builds only the page where you choose your stop. Passengers test it and say the list is far too long. The company throws that page away and designs a better one for the real program. This is a throwaway prototype.
Python
1from microbit import *
2display.show(Image.HEART_SMALL)
3sleep(100)
4display.show(Image.HEART)
5sleep(100)
6display.clear()
Output
a small heart for 0.1 second, a big heart for 0.1 second, then a blank screen
Prototypes are evaluated before they are improved. Here is a light prototype for a toy robot’s heartbeat lamp. Ask three questions: is each picture easy to recognise, is each one on for long enough, and does the change from one to the next look smooth? Here each picture is on for only 0.1 second (100 milliseconds), so the beat is just a flicker. A better delay is sleep(500).
Class activity

Prototype menu (no computer). Plan a menu card for a family café in two ways. Way 1 (evolutionary): draw the whole menu, let your family give feedback, then draw a complete version 2. Way 2 (throwaway): draw only the drinks section on scrap paper, collect feedback, throw the scrap away and draw the final menu. Which way used more paper? Which way found the problem sooner?

Practice
1
Copy the table and write evolutionary or throwaway in the last column. Add a short reason.
SituationWhich kind?
1A school gives teachers a complete attendance program for a term, then releases an improved version each month?
2A company tests only the log-in screen of a new program with ten users and then discards it?
3Students build a complete music-quiz program and make a new version after each round of classmates’ ideas?
2
This evolutionary prototype is a lift indicator: A shows an up arrow and B shows a down arrow. It works, but a tester says the arrow never goes away. Find the cause and say how to improve the next version.
Python
1from microbit import *
2while True:
3    if button_a.is_pressed():
4        display.show(Image.ARROW_N)
5        sleep(200)
6    if button_b.is_pressed():
7        display.show(Image.ARROW_S)
8        sleep(200)
3
Give one advantage and one disadvantage of each kind of prototype.
4
A bakery wants a program for taking cake orders. For the first test of the order form, would you choose an evolutionary or a throwaway prototype? Give two reasons.