What’s Your Recent ‘Gotcha?’
Published: July 9th, 2008I hate “Gotcha’s”; unfortunately, it’s part of the programming career. Over the years I’ve had a ton that made me want to pull the hair right off of my head!
The Idea
I think it would be a cool idea for everyone to share their latest “Gotcha’s”. Either for knowledge, entertainment, or downright pity.
My Scenario
My latest gotcha deserves a “special programmer award”, and by special, I mean short-bus special. I was doing some work on one of my projects and for some reason none of the changes were taking place when I refreshed the page. Changes in the model, changes in HTML, and it’s not updating live? What the heck? It shouldn’t need a server restart at this point, I thought to myself. Oh well, what the hey, I’ll go ahead and restart the server. Any luck? You guessed it, no. So “WTF” could be going on? Well, it finally dawned on me.
The Gotcha
I was refreshing the staging server of the project, instead of the local development version. Talk about a homer-doh moment.
Your Turn
What’s your latest “Gotcha?”

Nothing like changing root’s default shell to zsh in /etc/passwd and logging out…. before ensuring zsh was actually installed.
This server was the main production file server for the entire company.
I sat on various occasions wondering why all my dom:loaded events got fired twice. After a couple of days I realized that i had both
AND. The cause of it all was me trying out googles new hosted APIs and forgetting to remove the line afterwards… :([...] - bookmarked by 3 members originally found by hey23caribou on 2008-07-24 What’s Your Recent ‘Gotcha?’ http://www.danielfischer.com/2008/07/09/whats-your-recent-gotcha/ - bookmarked by 2 members [...]
Ready. Set. Go.
In terms of the formatting, you're allowed to use markdown, textile, or basic html; it's truly up to you -- what strikes your fancy?
You don't have to worry about your e-mail address being sold to a russian-spam-mafia. I'm only going to use it for my own weird needs; like asking you out for a date on a lonely night of coding.