News for hackers. Stuff that matters.
Re:Cognitive Biases in Programming by dualogy on Sunday October 15, 2017 @10:34AM (#15477254)
What kind of example is this, the 1st is an entirely different 'program' than the 2nd? Unless f1 is a no-op.
Re:Cognitive Biases in Programming by mikeash on Sunday October 15, 2017 @10:37AM (#15477262)
Yes, they're not the same program, but they're equally easy to write. I see people shying away from doing work in each iteration of the loop because of a feeling that it's more difficult to write the code.