Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Paranoid Programming

Name: Anonymous 2011-01-08 11:12

Hey guys, I just saw The Bourne Trilogy and I want to know how to become a paranoid programmer.

Name: Anonymous 2011-01-08 11:15

OH GOD A BUG WHAT SHOULD I DO THERE'S A BUG IN MY PROGRAM.
WHAT COULD IT BE? M-MAYBE THAT MALLOC? I DON'T KNOW! I... I DON'T KNOW WHAT TO DO. OH GOD, I'M LOST, WHAT SHOULD I DO? GOD, PLEASE, TELL ME! TELL ME!!

Name: Anonymous 2011-01-08 12:03

The easiest way to become a paranoid programmer is to assume anything can fail (yes, even that innocuous d = d * -1;) and bring the whole application crashing down.  Once you're in that mindset, begin writing conditions to survive a failure of all offending lines of code.  And then write conditions to survive the failure conditions failing.  If you need to go any further, you may as well give up programming and take up poetry.

Name: Anonymous 2011-01-08 12:46

>>3
d = INT_MIN;

Name: Anonymous 2011-01-08 12:55

>>1
become a paranoid programmer and you will be happier

http://en.wikipedia.org/wiki/Test-driven_development

unless you are a lone freelancer

Name: Anonymous 2011-01-08 16:12

>>4
What if there's a bug in the standard library?
And what if it runs out of space and it can't be allocated on the stack?
And what if the user tries to shutdown the system while d is being assigned?

Don't change these.
Name: Email:
Entire Thread Thread List