The Difference Between Good and Bad Code Comments

The difference between good and bad comments explained in under 25 words.

The Difference Between Good and Bad Code Comments

Bad Comments

Bad comments describe what the code is doing.

Good Comments

Good comments describe why the code is doing what it does.


Image by Fathromi Ramdlon from Pixabay

All original code samples by Mike Wolfe are licensed under CC BY 4.0