How to Write a README That Gets Read

If you take only one thing from this post, let it be this: make the problem visible first. Logs, metrics, a simple counter on a dashboard. You cannot fix what you cannot see, and you will be amazed how many problems disappear once someone is watching them.

The problem with the obvious fix

By the end of the week we had a fix we were proud of, a test that would catch the problem if it ever came back, and a short write-up for the rest of the team. That last part is the one most people skip, and it is often the most valuable.

The tempting fix was to add another condition and move on. We had done that before, and the code was already a thicket of special cases that nobody fully understood. This time we decided to step back and ask why the problem was possible in the first place.

  • A short summary of what changed
  • Why the change was needed
  • How it was tested
  • Anything the reviewer should look at closely
The team planning board after sprint review
The deployment pipeline, simplified

What the numbers said

Most performance problems are not mysterious. They come from doing work you do not need to do, doing it more often than necessary, or doing it at the wrong moment. Once you start looking for those three patterns, you find them everywhere.

Accessibility is easiest when it is part of the design from the start rather than something you bolt on before launch. Semantic HTML does most of the heavy lifting for free, and the remaining work is usually about focus management and clear labels.

The short version

Code is read far more often than it is written. Every shortcut that saves you five minutes today costs the next person who touches the file a little more time, and that next person is very often you, six months later, with no memory of why you did it.

Small pull requests get reviewed faster, get better feedback and are far easier to roll back when something goes wrong. If a change is too big to review in one sitting, it is probably too big to merge safely.

Documentation does not have to be long to be useful. A short note explaining why a decision was made is worth more than pages describing what the code already says. Future readers can work out the what; the why is the part that gets lost.

  1. Use semantic HTML elements wherever possible
  2. Make sure every interactive element can be reached by keyboard
  3. Give images meaningful alternative text
  4. Check colour contrast in both light and dark modes

We rolled the change out behind a feature flag to five percent of traffic first. Nothing exploded, the error rate stayed flat, and the response times improved by roughly a third. After a week we turned it on for everyone and deleted the old code path.

Posted in

jamie

Leave a Reply

Your email address will not be published. Required fields are marked *