How often do you write code you would describe as bad?

Posted by Whatever4M@reddit | ExperiencedDevs | View on Reddit | 106 comments

Recently, I've written a piece of code that I can only describe as bad. I got into the flow and quite literally got lost in whether I could write it rather than whether I should, and ultimately it was released.

Looking back at it, I realized it needed cleanup, and I figured out a way to make it much cleaner, which I'll implement when I have the time, but this was the first time in my life that I've written bad code without a "real" excuse, I could usually blame it on the tight deadlines or something along those lines but that wasn't the case here, and I just feel like a piece of shit because of it.

Is this normal?