private_messaging comments on PSA: Learn to code - Less Wrong

34 Post author: John_Maxwell_IV 25 May 2012 06:50PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (77)

You are viewing a single comment's thread. Show more comments above.

Comment author: gwern 29 May 2012 06:34:53PM *  1 point [-]

One example I've seen first-hand and suffered is confirmation bias. Beginning programmers, at least, when they run into a bug, do not try to disconfirm what they think the bug is, but instead try to confirm it. For example, they'll put print statements for a troublesome variable after the line they suspect is causing the bug rather than before it, to verify that it wasn't bogus before hand, or better yet, both before and after the suspect line.

Comment author: private_messaging 29 May 2012 07:01:08PM *  0 points [-]

Haven't seen programmers do this a whole lot. In any case this should get cured by one bug hunting session where the method horribly fails.

Also i am not sure that this is 'confirmation bias' being cause of anything. The methodology of thought for determining where the bug is, has to be taught. For me to confirm that bug is where I think it is, takes two print statements, before, and after.