|
|
|
|
|
by mannykannot
2516 days ago
|
|
> The lack of of error checking is more concerning though. It can be justified though... How so, in this case? It could lead to undefined behavior. > The comment is the worst part. Useless comments may be irritating, but, as a bad practice, they are not comparable to skipping checks for possible errors and creating the possibility for undefined behavior. |
|
Useless comments are bad in part because they are sometimes not updated as the code changes, and no code analyzer will catch that. There is a reason some people say that comments are lies.
Most common example of what I've seen: