by munchbunny · 6y ago · 0 comments
That's fundamentally a trap question. It's like when you keep asking "why?" until the answerer runs out of explanations because we've inevitably reduced things to quantum mechanics. I think the exercise is a useful demonstration of why the code you write doesn't necessarily do what you think you wrote, but as an exercise (or, god forbid, an interview question) I don't think it's that useful.
These days, my answer (after the usual contextual questions if this were a PM/dev interview) would be "I would tape a GoPro to my head and record a video of me making PB&J. If there's any ambiguity, I think 99% of people would be able to fill in the blanks."