Skip to content

Comment on A Real Life Off-by-One Errorparent

Comments

My analogy is that "The bug is in the error-handling portion of the common fast-path speed traversal of the climb."

The fast path that the speed climbers commonly use doesn't involve the slower path involving the buggy portion.

But if the climber can't get up/further using the fast path then the climber may be forced to take the slower path.

Since the slower path is standardized, the climber knows how much effort/time is needed on the slower path.

Except on the righthand side, the climber's typical effort along the slower "buggy" path is different from the typical slower path and will result in an even slower time aka the execution time in the error-handling path is larger than usual...

AboutSource Built by g1lg1l

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