h2s
Joined 14 years ago
Karma
2,206
Submissions
296
Member since
Feb 26
Joined 14 years ago
Good commenting is no substitute for good naming. For a variable containing the number 1, "three" is a shitty name.
> visually represent logical segments of the code
This is exactly the use case in which function definitions excel. Use functions for this, not comments. # Try to read the configuration file.
If this wasn't already obvious without the comment, then the code is a mess. Tidy the code up instead of painting over the problem with comments.