Page 1 of 1

Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 9:28 am
by trufun202
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

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 11:02 am
by XianForce
lolol that's hilarious :lol:

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 11:47 am
by Netwatcher
oh dear XD :lol:...
How will you fix that?

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 12:20 pm
by hurstshifter
I hope this service is just on one server! You may want to give these guys a call and provide them with v2.0 of that service.

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 12:58 pm
by trufun202
I had them kill the service. It's not something they use anymore. Thank god. Otherwise, I would have volunteered my time to fix it. ;)

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 2:14 pm
by ismetteren
I hope the ones who had to pay for it dident pay per text message :P

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 7:22 pm
by eatcomics
Well I never would have thought of doing that, even good sounding ideas often take a turn for the worse... :lol:

Re: Hardcoding, FOR THE LOSE

Posted: Fri Aug 07, 2009 9:09 pm
by dandymcgee
:lol: Poor Trufun.

Re: Hardcoding, FOR THE LOSE

Posted: Sun Aug 09, 2009 9:12 pm
by Falco Girgis
Dude, that is absolutely hilarious!