Skip to content
public-library›Rules›Documentation›Write comments in plain, direct language

Write comments in plain, direct language

Write comments so the reader gets their meaning without decoding the prose. Make the relevant actor, action, condition, and consequence clear. Keep related words close together, and split sentences when their structure obscures the meaning. Use names from the code and familiar technical terms; explain project-specific shorthand.

In the full rule