Code Provenance

Me: “Hmmm, that’s a weird bug”
(spend hours debugging, and narrowing it down to one section)
Me: “That’s weird, whereTF did he come up with this way of doing it?”
(Google, find stack overflow page with same code, including typo in comment)
(Gaze in awe at realization that the lifted code came from the question, not the answer)
Update 1: To be fair, the code did two things, one correctly (which was needed here originally), and one wrongly (which, because Hyrum’s law rules, means that eventually the wrong stuff ended up getting exercised…)
Update 2: Of course, Geek-and-Poke already said it.

Comments

Popular posts from this blog

Cannonball Tree!