Hacker News new | ask | show | jobs
by thanksforfish 1800 days ago
I saw a thread recently that suggested reviewers should be running the code, not just reading it. Does anyone here run code as well? If so, I'd be interested in hearing about the experience.

I've almost always just read the code and "ran it in my head".

2 comments

I will do this sometimes if I don't understand how something works and want to confirm it on my own before asking about it. I'll also run the code if I suspect something was missed and want to confirm before bringing it up.
You need to be careful with that. The brain is amazing at reading what you _expect_, not what's actually written.

It's the same as proofreading. Your brain just papers over repeated words or typos, or off-by-one errors.

Obviously there's a middle ground and it's unreasonable to ask someone to run every single line of code, but it's good to be aware of that.