Skip to the guide

When the interviewer adds a requirement halfway through

IntermediateConcept7 pages

At a checkpoint or in the review, the interviewer may add a rule you haven't planned for. They can then see what you read first, which files you open, and whether the program still runs afterwards. This page gives you four moves, and shows how to decide between a few small edits and a rework.

A new stop on a long drive

You are driving friends across the country, with the route marked on a map. Halfway there, one of them says, "We have to pick up my cousin." A good driver first asks which town, and by when. Then she finds the town on the map and sees that it is three short turns off the road. She takes those turns and the car keeps moving.

There are two ways to get this wrong. One driver drives straight across a field to the town. She arrives sooner, with something broken under the car that nobody notices until later. Another pulls over for an hour to plan a whole new route. Now and then that hour is right, when the town lies in a different direction and every road ahead changes, but she checks the fuel and the hours left first.