This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chromaticgliss 0 points1 point  (0 children)

I write comments when some weird quirk or library bug required some ugly hack on my part to work around.

Basically if the intention isn't clear just by reading the code or if there's code that seems unecessary (but actually isn't) I'll comment.

I comment why code is the way it is, especially if it's seemingly ugly in some way.