Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

Six steps to solve a problem

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

40 minutes

The college app is too slow

Students say the college timetable app is slow. The head of IT asks you to fix it.

Do you start changing code? No. First you must know what the problem is. There is a plan that works for almost any problem. It has six steps.

Key words

WordWhat it meansExample
StrategyA plan for how to solve a problem.the six steps
DefineSay clearly what the problem is.the app takes 20 seconds to open
AnalyseStudy the information to find out what it means.it is slow only at 9am
ImplementCarry out the plan.add the fix
ReviewCheck if the solution worked.is it fast now?
Top-downStart with the whole problem and break it into parts.plan the app, then its screens
Bottom-upStart with small parts and join them.build the payment tool first
ModularisationSplitting a program into separate modules with one job each.a login module
Root cause analysisLooking for the real reason a problem happens.ask why five times
StakeholderA person who cares about the result.students and teachers

The cells students fill in are left blank in this preview.

Can you guess the order?

Have a go

Can you guess the order?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The six steps on the slow app

StepWhat you doThe slow timetable app
1 Define the problemSay what is wrong, in one clear sentence.The app takes 20 seconds to open at 9am. It should take 2.
2 Gather informationCollect facts: ask people, read records, measure.Ask 10 students and 3 teachers (the stakeholders). Check the server (the computer that runs the app) records. Time the app at different hours.
3 Analyse the informationLook for patterns and causes.It is slow only when 500 students sign in together.
4 Make a plan of actionChoose what to do, in what order, and who does it.Save the timetable so it is not loaded again for each student.
5 Implement a solutionCarry out the plan.Write the change and put it on a test server first.
6 Review the solutionCheck it worked. Ask the same people.Time it at 9am again. Now it takes 2 seconds.

The cells students fill in are left blank in this preview.

It is not always a straight line

data-callouts.warning.label

If the review shows the problem is not solved, go back. You may need to define the problem again or gather more information. Many real projects go round more than once.

Many strategies, one problem

You now know several strategies. Top-down and bottom-up decide how to build. Root cause analysis decides why something failed. The six steps give an overall plan.

A good developer chooses the right one for the problem. You often use more than one together.

Which strategy fits?

ProblemGood strategyWhy
A new app with a clear list of needsTop-downYou know the goal and can break it up.
You must build with a trusted payment tool you already haveBottom-upYou start from the part that exists.
The same problem keeps coming backRoot cause analysisYou must stop it coming back.
A large program with many people working on itModularisationEach person owns a module.
A request that is not clear: make it betterThe six stepsYou must first define and gather information.

The cells students fill in are left blank in this preview.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.