The depressed programmer
medium.com
medium.com
Embrace the experience and learn from it.
Revisiting my own code from 10 years ago makes me proud, revisiting my own code from 20 years ago makes me appreciate how much I learned.
Having produced a shitload of bad code is no reason for being depressed as long as you can rightfully claim that your more recent code is better because of what you learned from your early, bad experiences.
There'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's the research in to these things?
These are familiar issues to me and I'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.
* What little science I'm aware of on these topics is generally weak. This may be because the industry is mostly ignoring them so there's no money in studying them but it'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.
https://perl6advent.wordpress.com/2015/12/20/perl-6-christma...