Hardcoding, FOR THE LOSE

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
trufun202
Game Developer
Game Developer
Posts: 1105
Joined: Sun Sep 21, 2008 12:27 am
Location: Dallas, TX
Contact:

Hardcoding, FOR THE LOSE

Post 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
-Chris

YouTube | Twitter | Rad Raygun

“REAL ARTISTS SHIP” - Steve Jobs
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: Hardcoding, FOR THE LOSE

Post by XianForce »

lolol that's hilarious :lol:
User avatar
Netwatcher
Chaos Rift Junior
Chaos Rift Junior
Posts: 378
Joined: Sun Jun 07, 2009 2:49 am
Current Project: The Awesome Game (Actual title)
Favorite Gaming Platforms: Cabbage, Ground beef
Programming Language of Choice: C++
Location: Rehovot, Israel

Re: Hardcoding, FOR THE LOSE

Post by Netwatcher »

oh dear XD :lol:...
How will you fix that?
"Programmers are the Gods of their tiny worlds. They create something out of nothing. In their command-line universe, they say when it’s sunny and when it rains. And the tiny universe complies."
-Derek Powazek, http://powazek.com/posts/1655

blip.fm DJ profile - http://blip.fm/Noobay
current code project http://sourceforge.net/projects/vulcanengine/
User avatar
hurstshifter
ES Beta Backer
ES Beta Backer
Posts: 713
Joined: Mon Jun 08, 2009 8:33 pm
Favorite Gaming Platforms: SNES
Programming Language of Choice: C/++
Location: Boston, MA
Contact:

Re: Hardcoding, FOR THE LOSE

Post 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.
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
User avatar
trufun202
Game Developer
Game Developer
Posts: 1105
Joined: Sun Sep 21, 2008 12:27 am
Location: Dallas, TX
Contact:

Re: Hardcoding, FOR THE LOSE

Post 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. ;)
-Chris

YouTube | Twitter | Rad Raygun

“REAL ARTISTS SHIP” - Steve Jobs
User avatar
ismetteren
Chaos Rift Junior
Chaos Rift Junior
Posts: 276
Joined: Mon Jul 21, 2008 4:13 pm

Re: Hardcoding, FOR THE LOSE

Post by ismetteren »

I hope the ones who had to pay for it dident pay per text message :P
Image ImageImage Image
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Hardcoding, FOR THE LOSE

Post by eatcomics »

Well I never would have thought of doing that, even good sounding ideas often take a turn for the worse... :lol:
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Hardcoding, FOR THE LOSE

Post by dandymcgee »

:lol: Poor Trufun.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Hardcoding, FOR THE LOSE

Post by Falco Girgis »

Dude, that is absolutely hilarious!
Post Reply