News for hackers. Stuff that matters.
Re:Avoid Else, Return Early (2013) by Aaargh20318 on Monday March 26, 2018 @09:58AM (#16678899)
> Only "brilliant" code ends up needing comments.

Code shows what is being done. Comments should explain why it's being done.

Re:Avoid Else, Return Early (2013) by lackbeard on Monday March 26, 2018 @02:59PM (#16681489)
Code shows how it is being done. Comments should explain what is being done.
Re:Avoid Else, Return Early (2013) by jessaustin on Monday March 26, 2018 @03:53PM (#16681931)
In some cases it seems that the name of a function takes care of the "what".
Re:Avoid Else, Return Early (2013) by zarex on Monday March 26, 2018 @10:29AM (#16679148)
That's a really nice approach. Thanks for sharing, I might borrow it sometime!