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

Defensive Programming Squad

Name: Anonymous 2008-10-22 5:59

In this thread we pick up innocent programs and tank the shit out of them.

#include <stdio.h>
int main () {
  int n1, n2;
  printf("First integer:");
  scanf("%d", &n1);
  printf("Second integer:");
  scanf("%d", &n2);
  printf("Sum = %d\n", n1+n2);
  return 0;
}

Name: Anonymous 2008-10-24 3:26

>>40
Fuck your test cases and enterprise best practices.

Name: Anonymous 2008-10-24 6:20

What the fuck /prog/??
You should prove your programs correct before you write even a single line of production code!!

Name: Anonymous 2008-10-24 14:15

I have a scheme macro that automatically creates all possible test cases for me. Unfortunately I created it at work and I signed a non-disclosure agreement with my boss, so I can't share it with the world forever.

Name: Anonymous 2008-10-24 14:36

>>43
quickcheck

Name: Anonymous 2008-10-24 14:45

>>44
back to /haskell/, please.

Name: Anonymous 2008-10-24 20:41

>>41
defensive programming

Name: Anonymous 2008-10-25 16:28

Xarn provides me with my daily crack fix.

Name: Xarn 2008-10-25 16:36

>>47
Xarn here, just want to let everyone know that I do not condone illegal activities.

Xarn, over and out.

Name: Anonymous 2008-10-29 6:23

#include <stdio.h>
int main () {
 char character;
  printf("ASCII:");
  scanf("%c", &character);
  printf("%d\n", character);
 return 0;
}

Am I doing it right?

Name: Anonymous 2008-10-29 16:41

This thread is threadstopped. You can't reply anymore.

Name: Anonymous 2008-10-29 17:00

>>50
damn

Name: Anonymous 2008-10-29 23:38

>>51
I think Xarn is to blame.

Name: Anonymous 2008-10-30 0:18

>>50
if this was your task .. yeah, But pls .. optimize this shit of code

Name: Anonymous 2009-03-06 13:54

Threadstopped.

Name: Anonymous 2010-11-14 6:02

Name: Anonymous 2010-12-27 12:45

Name: Anonymous 2011-02-03 3:39

Name: Anonymous 2011-02-03 5:58


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