Hacker News new | past | comments | ask | show | jobs | submit login

Code is written and read by humans, therefore it should be clear and concise.

Cleverness should be used in constrained situations like performance (fast inverse square root [1] comes to mind), and comments explaining the cleverness is important.

I should note [1] did a terrible job at commenting.

[1] https://en.m.wikipedia.org/wiki/Fast_inverse_square_root




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: