JargonDatabase

Panic Code

A computer program statement written to prevent a problem that would never actually occur.

Panic Code is typically written by neophytes who do not have a complete understanding
of fundamental computer programming concepts.

The following is an example of Panic Code.
The last line of code is totally not necessary because there is no operation
that modifies intDogId. The " intDogId == FIDO " only compares the values.
This code may be written by a noob who did not understand the difference
between A == B (compare values) and A = B (assign A the value of B) in the past and had error because of it


integer intDogId = 1;


if ( intDogId == FIDO )
{
GiveFidoBone();
}

// Make sure Dog Id is 1

intDogId = 1;

This bit of jargon has been viewed 2,826 times.

Blog Link Copy to Clipboard
What is this?

Return To Programming Jargon

Sponsor LinkJargonDatabase.com proudly supports xSQL, we encourage you to check out this great tool for comparing and synchronizing SQL Server databases

Search the Jargon Database
Loading




Home | Add Jargon | F.A.Q | About | Contact
© 2010 JargonDatabase.com


Jargon Database is sponsored by Profit Awareness - discover your best clients, and get rid of your bad ones (Check out out business practices blog here)

Jargon Database was built by the best web development agency in Atlanta Georgia - Digital Tool Factory