Probably the best answer I can think of is to just stop caring what people think (about your work/code), I know my work is never perfect (or even good) but I show up anyway. We are not defined by the code we write or the work we do because to be honest most of it is probably not bringing that much value to society anyway; what defines us is our character. Stay humble and look at every criticism as an opportunity to learn and build relationships.
I've been working for a long time now and I have learned the hard way that nobody is perfect and nobody cares if you are perfect, in fact people tend to prefer those at their own level (not perfect), but most of all relationships matter and are probably the most important part of having a healthy and enjoyable career.
I've been working for a long time now and I have learned the hard way that nobody is perfect and nobody cares if you are perfect, in fact people tend to prefer those at their own level (not perfect), but most of all relationships matter and are probably the most important part of having a healthy and enjoyable career.