Good programmers are, IMHO, natural perfectionists. We all want to write perfect code. We want to write code that anticipates every possible situation and, even in the worst case scenario, handle things gracefully. It's worth waiting another day because your code will then be that much better with a little more planning...
Sometimes it's not about being perfect however, it's just about getting it done (wait, they paid what for myspace?!!?!). Just tell yourself that you need to get something up, and that you'll improve it later. Most likely, you'll never look at that code again but who cares, it's all about tricking yourself into accepting 'mediocrity' (reality?). But you will, more often than you think, surprise yourself and end up writing code you are proud of.
Either that, or you're being a bitch and think you're too good a programmer to spend time writing 'these mundane' solutions. In that case, suck it up or shut up.