Skip to content

Say what the code does now, not what it did before - #2

Merged
barnumbirr merged 1 commit into
masterfrom
comment-hygiene
Sep 9, 2026
Merged

Say what the code does now, not what it did before#2
barnumbirr merged 1 commit into
masterfrom
comment-hygiene

Conversation

@barnumbirr

Copy link
Copy Markdown
Contributor

A pass over every comment in this repository, on three rules.

No hardcoded dates. A measurement's value is the number, not the day it was
taken, and a date in a comment is a claim that ages without anyone checking it.
The measurements stay.

No past-state narration. A comment describing what the code used to do makes
a reader reconstruct a version that no longer exists before reaching the one in
front of them. Each is rewritten to state current behaviour and the reason for
it, keeping the failure mode where that is what makes the reason legible.

Shorter, without dropping anything load-bearing.

Comment-only: every executable line in this diff is byte-identical to the one it
replaces, verified by stripping comments from both sides and diffing.

A pass over every comment in this repository, on three rules.

No hardcoded dates. A measurement's value is the number, not the day it was
taken, and a date in a comment is a claim that ages without anyone checking it.
The measurements stay; "Measured 2026-09-06 on lychee 0.24.2" becomes "measured
on lychee 0.24.2".

No past-state narration. A comment describing what the code used to do makes a
reader reconstruct a version that no longer exists before reaching the one in
front of them. Each of these is rewritten to state current behaviour and the
reason for it, keeping the failure mode where it is what makes the reason
legible.

Shorter, without dropping anything load-bearing. Run-together blocks split,
summary sentences moved to the front of the comment they summarise.

Comment-only: every executable line in this diff is byte-identical to the one
it replaces, verified by stripping comments from both sides and diffing.
@barnumbirr
barnumbirr merged commit bdec7cf into master Sep 9, 2026
1 check passed
@barnumbirr
barnumbirr deleted the comment-hygiene branch September 9, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant