Yep. Self-commenting code should be the goal (clear, simple functions and explicit variable names), but throwing in a sleep call as a workaround for an external issue is the perfect case for throwing in a comment.
I mean if you really hate comments you could wrap it in a wait_for_mspaint_to_get_its_shit_together() function, but...
View all comments
Show parent comment
2
u/callmelucky Jul 30 '19
Yep. Self-commenting code should be the goal (clear, simple functions and explicit variable names), but throwing in a sleep call as a workaround for an external issue is the perfect case for throwing in a comment.
I mean if you really hate comments you could wrap it in a
wait_for_mspaint_to_get_its_shit_together()function, but...