About a decade ago, I used to teach programming language in a company specialized in forming new developers. It was common for students to really struggle with very simple coding tasks due to really rookie mistakes unrelated to the technical subject that was being taught. The single most common rookie mistake was when the student simply forgot to save the file before running it. Everything was correct but they just did not hit the save button. And most of these times it required my assistance in solving. I noticed that even more experienced developers enrolled in the classes also made the exact same mistakes and even felt super embarrassed when I spotted the cause.
Today, while studying a new technology, I myself(a 14 years experienced software engineer that used to teach programming languages) made the exact same rookie mistake. It took me 20 minutes of debugging to find out I just forgot to hit the save button. On my day to day activities it does not happen, or if it does I spot it in seconds unless I'm really really tired.
What I mean is, hitting the save button (or cmd + s keyboard shortcut) has become second nature to me even so that sometimes a hit cmd + s on places I shouldn't like while browsing the web. Some devs even have the habit of hitting the button several times. It clearly seems like a second nature to me.
It made me wonder WHY does the human mind, when dealing with a new complex subject, keeps repeating the same mistake patterns unrelated to the matter being studied? Besides that, how does the fact of studying a new subject can affect your 'second nature'?
The human mind truly amazes me.