* Having to refactor a program / module for a website because it uses a database to store data, which isn't supposed to be done because said database is only for writing.
* Refactoring said program. This was about a month and a half ago.
* Works fine on testing environment, guys want to put it live... doesn't work.
* Investingating it, making it spew out extra messages, sending them to the developer / support of the company that made the CMS we're working in
* Spending a few hours on that, then finding out it's because the live server runs in a clustered environment, and said clustered environment doesn't have access rights to write stuff into the new method of storing stuff.
* Having to refactor it yet again to use a database again. Back at square one, and the original developer was right after all. He should've said so though. Damn chink.