Cognitive Dissonance in Programming
hangaroundtheweb.com
Cognitive Dissonance in Programming
1–10 of 51 posts
Re: Cognitive Dissonance in Programming
#2Re: Cognitive Dissonance in Programming
#3A checkin goes through many checks and eyes in which mistakes are bound to surface, and not admitting to those mistakes is not really an option most of the time. What's more, they are different kinds of checks, so if you can find an excuse for one thing telling you something is broken it's likely you won't have an excuse for the next. By the time a CL goes from code review to autotests + CI, you've potentially had to admit to a few mistakes or things you could've done better. This happens daily in my workplace - and it's not that these checks are foolproof and we all check in perfect code, but there are certainly a lot of silly and not silly mistakes in both approach and syntax which we regularly have to admit to making.
Re: Cognitive Dissonance in Programming
#4From the original 1989 "Version 1.0" of The Hacker Test[1]:
0477 Ever spend ten minutes trying to find a single-character error?
0478 ... More than an hour?
0479 ... More than a day?
0480 ... More than a week?
0481 ... Did the first person you show it to find it immediately?
I don't know if this is caused by cognitive dissonance of the ego, "highway hypnosis"-style blindness from staring at your own code for too long, or something else. Regardless, programmers have always had this problem.Re: Cognitive Dissonance in Programming
#5Re: Cognitive Dissonance in Programming
#6Read this book; much of it is still very applicable decades later (and the exercise of translating it into modern terms makes you think and is valuable too).
Re: Cognitive Dissonance in Programming
#7This is a great article and more people should read it. I was wondering why the sentences sound so familiar and it turns out it's heavily plagiarised (as in, a substantial number of sentences and paragraphs are lifted verbatim from) Gerald Weinberg's book The Psychology of Computer Programming (listed at the end as one of the "references"). Read this book; much of it is still very applicable decades later (and the ex…
Re: Cognitive Dissonance in Programming
#8I thought this was an interesting article, but in real life I'm not quite sure how big the problem of programmers being unwilling to admit their own mistakes is. A checkin goes through many checks and eyes in which mistakes are bound to surface, and not admitting to those mistakes is not really an option most of the time. What's more, they are different kinds of checks, so if you can find an excuse for one thing tell…
Re: Cognitive Dissonance in Programming
#9Re: Cognitive Dissonance in Programming
#10> A programmer who truly sees his program as an extension of his own ego is not going to be trying to find all the errors in that program. On the contrary, he is going to be trying to prove that the program is correct – even if this means the oversight of errors which are monstrous to another eye. From the original 1989 "Version 1.0" of The Hacker Test[1]: 0477 Ever spend ten minutes trying to find a single-character…
You stare at it and stare at it and get so used to it that you don't notice that you needed a > where you have a <.