HNHacker News
TopNewBestAskShowJobs

drzackr

1 karma · joined February 15, 2022

submissionscomments
drzackr··on Ask HN: Let's discuss Python type hints guidelines
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.