I disagree on the strongest terms. You need to work with a mindset to your own growth an evolution. It was me who wrote these lines of code an hour ago, but I would not have known to write them a year ago and I will know better than to write them like this in another year's time. Possibly I wouldn't even write them like that now, having thought about them for an hour.
I am not a perfect coder, some Omnipotent god. Everything I write is a tradeoff of my current set of knowledge and the pressures I'm under and is therefore inherently flawed.
If someone criticise my code it's because they either know more than me, in which case I have learned why I shouldn't have done that and will adapt for the future, or it's because they know less than me and I haven't clearly explained the tradeoffs in which case I have learned that I need to express myself more clearly and will adapt that for the future.
(Of course it might just be because they didn't bother to read my commit message but that's a different problem)