You read the chapter and followed every line of the worked examples. Then the exam handed you a problem that was not in the chapter, and the page stayed blank.

That does not mean you are not smart. It means that following a solution and producing one are different skills, and reading only trains the first. I am writing this for students who keep hitting that wall, and for anyone who will soon be responsible for a system that breaks at a bad time. By the end you should have a method for the moment when you do not know the way: find the next step you can check, and take it.

Following is not producing

When you read a worked solution, the only question you answer is whether each line follows from the one before it. That is checking. A blank page asks something else: out of everything you could write next, which one? Reading never asks you that, so reading never practices it.

The feeling of knowing is a poor guide here, and there is evidence for that. In a 2006 study, Roediger and Karpicke had students study a prose passage and then either reread it or try to recall it from memory, with no feedback. The rereaders scored higher on a test five minutes later and were more confident that they would remember it, but on tests given two days or a week later the students who had practiced recalling remembered substantially more. Researchers call this the testing effect. The study measured recall of a passage, which is narrower than solving a problem you have never seen, so the next sentence is my extension and not their finding: confidence built by rereading runs ahead of what you can produce.

I use two words for the two skills. These are my working definitions, not dictionary ones. Smart means you can follow it: shown the path, you can walk it and see that it is correct. Clever means you can make progress when nobody has shown you the path. In my experience, lectures and textbooks mostly exercise the first, and the hard exam questions ask for the second.

I have said before that if you follow someone closely, you lose the opportunity to discover things for yourself and you become an observer. Someone who cooks along with a video ends up with dinner and has still only followed a recipe. A worked example is a recipe. The exam hands you ingredients.

Clever, in this sense, is a short list of moves that can be practiced. They are heuristics (rules of thumb that tend to produce progress without guaranteeing it), and most of them were written down by George Pólya in How to Solve It in 1945.

  • Restate the problem. Say in your own words what is given, what is unknown, and what condition connects them. If you cannot, you have found the real problem: you do not understand the question yet.
  • Try a small case. Work the first few values by hand, or use the smallest input that still has the shape of the problem, such as an empty list or a single node. Patterns that hide in the general case show up in small ones.
  • Work backward. Write down what a finished answer has to look like, then ask what must be true one step before it.
  • Check an assumption. List what you are taking for granted and test the cheapest item on the list. I think anyone can learn anything if they get rid of their incorrect assumptions. Getting unstuck works the same way.
  • Change the representation. Draw it, or turn the paragraph into a table. In my write-up for a 2020 course project, the first step I recorded was drawing on a whiteboard how I would topologically sort an adjacency list (a graph stored as each node’s list of neighbors, put into an order where every edge points forward). I chose the data structure afterward, a dictionary, because it matched the drawing.

None of these moves requires knowing the answer. Each one puts something on the page that you can check, and a checked line is somewhere to stand for the next move.

I collect canonical reference books, which I call Tomes, and I think you should buy them. The warning that follows from all of the above is that reading a Tome is still reading. Close the book and work the problem.

The exam room and the server room

Picture forty minutes on the clock and a problem you do not recognize. Or a project due in two weeks in a language you have never written. I had that one: two weeks to finish a course project starting from zero knowledge of OCaml.

Now the version with a paycheck attached. A few months into my job, my supervisor retired and I became the only person there who knew the network and the Linux systems. I own a hybrid environment of roughly 46 servers. When one of them is down, or stuck halfway through an upgrade, people are waiting and nobody is holding an answer key.

My opinion, having sat in both chairs, is that it is the same feeling. The clock is running and you do not know the way.

School is where you first get to practice thinking clearly while that feeling is present. A bad practice round costs you a grade. A bad round in production costs someone their data, or leaves a business unable to take calls. I would rather meet the feeling for the first time where the price is a grade.

I have real complaints about school, and I have written that the paper was never the point. I have also described a degree as four years of having to show you are accountable and responsible while learning a load of math. Deadlines are where the accountable part gets practiced.

I want to be exact about the claim. I am not saying anxiety is good for you, and nothing here is medical advice. The claim is narrow: a deadline you care about is a chance to practice working in order while you are uncomfortable, and in my experience that practice carries over. If the dread is there all the time, or does not lift once the deadline has passed, that is outside what this essay is about, and your school’s counseling service or a doctor is the place to take it.

What you practice is specific: doing the next small thing correctly while the feeling is still there. The feeling does not have to leave first.

Five feet of light

The picture I use is a tunnel. The only way out is through it, and it is dark. But you are carrying a light, and the light shows about five feet of ground in front of you. You cannot see the exit or how long the tunnel is. You can see where to put your foot.

As a method: you never need the whole solution. You need the next step you can verify. Take it, and the light moves with you.

Three cases from my own work, with identifying details removed.

An in-place upgrade of a phone system stalled. The package manager reported the new version, while the admin console still showed the old one and threw errors about a database column that did not exist. One small check was pg_lsclusters, which on Debian and Ubuntu lists every PostgreSQL cluster (one database server instance with its own data directory and port) on the machine. It showed two, the old major version holding all the data and the new one empty, which told me the upgrade had installed a new database without moving the data, and that the one thing I must not do was start the application against the empty one.

A production web server had about a month of slowdowns, each with a different apparent cause, among them a restarted search service and a database at its connection limit. The check that ended it was asking the PHP-FPM worker pool (the processes that run PHP for the web server) what each worker was doing at that moment, through its status page with ?full, which was reachable only from the server itself. Thirty-eight of forty workers were serving one script: every client called it five times in parallel, each call waited 3 to 10 seconds on an external API, and PHP’s session lock (only one request at a time may use a given session) made a client’s calls queue behind each other. Removing the session from that one script cut the busy workers from 38 to 18.

The third was a build, not an outage: replicating on-premises servers into a cloud network for disaster recovery. New servers stalled during setup, and the service names the step it is stuck on, which was the one where its replication server authenticates with the service. That turned “replication is broken” into one question, whether that server could reach the service’s endpoint, and it could not: the endpoint’s firewall rule only admitted traffic from its own group. With that fixed, setup moved forward and stalled again several steps later, where the agent on each source server connects to the replication server, because the cloud side’s route table (its list of where to send traffic for each destination) had no route back to the on-premises network.

In none of these did I know the answer when I started. Each time I had one question that was cheap to ask and whose answer I could trust. In the replication case the second fault was not visible at all until the first was fixed, so no amount of staring at the start would have found it.

The pull under pressure goes the other way, toward the big move. In the slowdown case, one earlier response was to let the cloud instance exceed its CPU budget. Looking back, that probably masked the cause.

In production a step should also be one you can undo, which is why I snapshot before I touch production. An earlier attempt at upgrading that phone software removed the application entirely, and reverting a virtual machine snapshot was the recovery.

This is also how I learn. When I took on a PHP framework, and later assembly language, I went one brick at a time: read, build one small thing, confirm it works, then pick up the next brick. I asked for that pace after a first explanation overwhelmed me. I know what looking down the tunnel does to me. My motivation drops when I reach a point that is way over my head, and a brick at a time the same material is workable.

I think most people are too caught up in failure and success to notice that everything is a progression.

The only way out is still through. The exam is timed and the server is down. But nobody is asking you to see the far end. What is asked of you is the next five feet: one step you can check. Take it, and look again when the light has moved. Focus on the light in front, not the darkness ahead.

Sources and further reading