More

Coding Confessional

Anonymous Confessions from Programmers.

More

Absolutions: 2094 • Condemnations: 94

07/04/2013


Comments

gawdzer:
I use alert() functions to debug my HTML5 enabled mobile applications. I'm already burned.
Anonymous:
Let's just say that your hell is going to be very, very crowded. I'll be the one wearing the DON'T FORGET TO FFLUSH(3) t-shirt.
Never_Working:
MessageBox.Show(s);
HadeS:
Hell yeah
Anonymous:
No problem, unless you forgot to take one out and code goes into production. Woops...
Anonymous:
Nothing an "ack-grep printf src/" couln't find. ;)
Anonymous:
All my PHP projects are full of //var_dump($foo); Most pragmatic way of debugging so far..
Anonymous:
You're using php, you already lost
vs06:
Info.display("Peace is a lie, there's only passion", myIntVar + "");
Anonymous:
A colleague did forget to remove one in a notable transaction server. It made it to GA but I don't think any of our customers were using that functionality before a patch was released that was basically mandatory
Anonymous #1:
C# Breakpoints
Anonymous #2:
Using std::cerr :)
Anonymous #3:
My code is full of NSLogs with "!!!!SOME BUG HERE ALARMO!!!!"
Zaba:
Sometimes I add some curse words to make the message more "informative". MessageBox.Show("fuckshit" + array.Length() ); Sometimes I end up putting MessageBox into some cycle and my program prints "crap!" fifty times...
catnikita255:
Just write to log, like me. log("Your text here");
Malia:
Nooo! You're not!!!
Anonymous #4:
if(config.debug) console.log(stuff);
Anonymous #5:
print_r a variable and exit in PHP. I never indent debugging statements, makes it easy to take them out in production.
Anonymous #6:
I always add a print("HERE\n"); when I want to debug. Most of the times I have 3 or 4 in the code , all in different places...
(optional)