You can disagree with me here, but there is no excuse to write retarded code. Where I work, you can get into A LOT of trouble you submit bad/not working code into production.
When I say retarded, I don't mean completely asinine. I mean not "perfect". There are times it happens. Is it great? No. I do like it? No. Is that just the world works? Yup.
If you're thinking something along the lines of, let's just say, not having a single point of reference, not using constants, not being consistent with formatting, etc. then I totally agree with you. There's never an excuse for that.