Game Development Community

Dirty Coding Tricks

by Justin Mosiman · in General Discussion · 08/20/2009 (9:17 pm) · 3 replies

Gamasutra put up an article detailing a few dirty coding tricks that went into making some professional games. One of my favorites was the one titled "The Programming Antihero", I've never worked in game development at the professional level so that trick seems pure genius.

I'm curious, what dirty coding tricks has the GG community come up with?

#1
08/21/2009 (3:15 am)
That's fantastic! Made me laugh. I'd love to hear about any of GG's stories like this... ;)
#2
08/21/2009 (9:41 am)
Here's a funny story about a phpBB2 issue I had before.

For some reason, after a web server upgrade phpBB2 would display a connection error page with a homepage link when sending a registration email. The funny thing was, the emails were being sent anyways. After a few hours of searching for the bug, I decided the easiest solution was to change the error page and link to something else. Rather than reading:

"Error: Emailer.php connection error. Click below to return to the homepage."

I changed it to

"This is a spam catcher. Click below to continue."



Problem solved! :)
#3
08/21/2009 (9:07 pm)
Haha, that makes me want to rewrite all my fatal assert messages to something more pleasant :P.