I’ve been coding for almost 40 years, so why do I still do stupid things?

I just tracked down a bug that, for a while, made me doubt my grasp on the very foundations of Javascript .