Better Programming

Advice for programmers.

Follow publication

Member-only story

15 Rules for Writing Clean Comments

Mohammad Faisal
Better Programming
Published in
3 min readFeb 12, 2021
Magnetic letters scattered on a white background
Photo by Jason Leung on Unsplash

“Comments are an unfortunate necessity, not great achievements.”

1. Multiline Comment vs. Single-Line Comment

2. Nonlocal Comment

3. Favor Long Names Over an…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (4)

Write a response