Raymond Chen has this to say on his recent post on code optimizations... Obvious optimizations - one that begs to be optimized - tend to be "de-optimizations" if you consider all that need to be considered...
I'm sure you must have come across / even coded optimizations you were embarrassed about after you learnt more...
Care to share?