Hardcoding, FOR THE LOSE
Posted: Fri Aug 07, 2009 9:28 am
This is just my handy tip for all of you aspiring programmers out there. Never, ever, EVER hardcode your personal contact information into your applications.
About 6 years ago, I wrote a Windows Service at my last job. If that service encounters an error, it logs it in a text file. However, if it can't access that file, it sends a text message to my phone. Which, was pretty handy at the time, because I would be alerted immediately if things went wrong.
BUT...
It's now 6 years later, and they're still running that service... And it's still got my cell phone number hardcoded into it...
So, when the server apparently went down last night, I got a text message every 2 SECONDS for 5 HOURS! ...Fuck. This has happened a few times now, and trust me, I've learned my lesson.
I hope each and every one of you can learn from my epic failure. /facepalm
About 6 years ago, I wrote a Windows Service at my last job. If that service encounters an error, it logs it in a text file. However, if it can't access that file, it sends a text message to my phone. Which, was pretty handy at the time, because I would be alerted immediately if things went wrong.
BUT...
It's now 6 years later, and they're still running that service... And it's still got my cell phone number hardcoded into it...
So, when the server apparently went down last night, I got a text message every 2 SECONDS for 5 HOURS! ...Fuck. This has happened a few times now, and trust me, I've learned my lesson.
I hope each and every one of you can learn from my epic failure. /facepalm