in reply to OT: most egregious programming error, ever

How about...
A programmer in our group who decided to use the mysql data dictionary DB (ie "mysql") to store his application data. Complete with using the mysql root user in his application, because... Well it was too hard to create a dedicated database, and user account for the job :-}

Remember that amateurs built Noah's Ark. Professionals built the Titanic.