Skip to content

Comment on Advice to young programmersparent

Comments

"The variant mentioning off-by-one errors may be pleasant, and useful for beginners, but is hardly a problem."

On the contrary-- I have seen many beginners struggle for a long time to fully grasp counting starting at 0, which leads to many off-by-one errors.

That's right but with some very basic rigour that kind of bug ever hardly bites. With high level languages this is less and less of a problem; Python for example let one write code without using i.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.