Notes on software that explains itself

About Readable / Code

Readable / Code explores how ordinary language helps people understand software: precise names, useful comments, revealing examples, and consistent concepts.

The focus

An editorial notebook about readable software.

Readable / Code explores how ordinary language helps people understand software: precise names, useful comments, revealing examples, and consistent concepts.

Keep neighbouring names distinct. If two values represent an original list and a filtered list, their names should make that relationship apparent without a separate explanation.

The method

Keep the question close to the example.

A comment is most useful when it explains a reason the code cannot make obvious on its own. Describe the constraint, the intended behaviour, or a non-obvious choice.

The filtering example is a conceptual sketch rather than a library recipe. Its purpose is to distinguish visibility, selection, and removal in plain words.

The record

Preserve the reason for a choice.

State what the example is intended to show. The reader should not have to guess whether an unusual value is deliberate or accidental.

Use these pages during a code review, while improving documentation, or when a small function is harder to explain than it should be.

The next page

Try a small, readable experiment.

Use the guide to review names, comments, and examples together. Work on a bounded section so the explanation stays connected to its context.

When the language changes, explain why. A translation between an interface label and an internal concept should be a deliberate relationship rather than a hidden puzzle.

Read the field guide