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

Clear code doesn’t need comments is a bit tricky statement. There are always two aspects of a problem. The math and the physics. Say a+b is clear from math point of view, but it’s completely ambiguous from physics point of view. In other words math is the what/how and phy is the why. I think the why needs good comments and for the what I agree with you that a clean code doesn’t.



Agree about the what vs the why, that's why I see type hints leaning towards the what most of the time




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

Search: