Welcome to the world of software development. In theory, you have to write &quot;great code&quot; for the coder who follows your footsteps in some company, practically it is your own code you have to revisit years later.<p>Embrace the experience and learn from it.<p>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.<p>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.