Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Do you need a comment to tell what a member function called postOrderMessageToEventBroker does?

Obviously not and the comment you're replying to hasn't asserted otherwise. They say, clearly, that comments should explain the _why_, postOrderMessageToEventBroker explains only the _what_ (which is reflected in the verbiage of your question). Fortunately comments are practically free and we're not limited to doing the reader one-favor-per-statement, we can explain _both_ the why with a comment (when it's not obvious) and the what with clear function names.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: