I don't have to look back very far. I can be disgusted in the afternoon by code I wrote in the morning.
If this feeling ever stops it means I've stopped learning and stopped personal progress. I'll stop coding that day.
Thankfully it didn't go away for the last 30 years I was programming, so it will probably stay with me a little longer.