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

I'd recommend putting comments around code that appears like it may be wrong, or just avoiding such code as proposed. For instance, if I must do assignment within a conditional, I would at least put a comment the line before saying that assignment was intentional. But it's worth writing the assignment on its own line for clarity.


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

Search: