all 2 comments

[–][deleted] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

The examples were really simple code, of course nobody needs a comment to explain a function call.

[–]fschmidt 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Yes, if you need comments to explain your code, then your code is to complex. Write simple self-documenting code. The only exception is when you are forced to write a hack to work around some crappy interface. My typical comments are something like "fucking google" which makes clear that the following code is some hack for google.