If I am writing a tutorial or a sample project for others to read and understand, I always upload code that I am proud of. If it's an internal experiment or side project for fun I try to give my best, but occasionally leave bugs or unoptimised code. But do I come back and improve things? It depends on whether I want to move ahead with the project. If yes, I redo the project properly.