I&#x27;m pretty sure the author of the medium article was conveying an entirely different point. Namely, that they noticed they wrote poor code, some time ago, when they were depressed, not that they got depressed, now, when they saw poor code they&#x27;d written some time ago.<p>There&#x27;s more of interest in this very brief article: the broader role of the state of mind of a coder as they write code; that coding might be more art than science; and where&#x27;s the research in to these things?<p>These are familiar issues to me and I&#x27;m sure some folk in the game but the author is right that much of the industry seems to ignore them with presumed* profound consequences for the quality of code that gets written.<p>* What little science I&#x27;m aware of on these topics is generally weak. This may be because the industry is mostly ignoring them so there&#x27;s no money in studying them but it&#x27;s also clear that the things to measure (state of mind and quality of code) are really hard to measure in a way that leads to useful science.