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

Old code

Name: Anonymous 2010-04-07 17:52

Do you ever look at code you wrote years (even months) ago and think, "Fuck me, this is shit"?

Is there a threshold age where anything older than that is guaranteed to suck, or is there a cutoff date after which code is generally up to your current standards?

A threshold age would indicate that you are still learning; any cutoff date will probably be when you finished (and fully understood all the concepts of) SICP.

Name: Anonymous 2010-04-08 1:44


#include <stdio.h>

int
main(){
    int mult = 0;

    for (mult = 1; mult <= 100; mult++){
        if (mult % 5 == 0){
            if (mult % 3 == 0){
                puts("FizzBuzz");
            } else {
                puts("Buzz");
            }
        } else if (mult % 3 == 0){
            puts("Fizz");
        } else {
            printf("%d\n", mult);
        }


    } return 0;
}


Oh yeah! Faster than most comp sci graduates
... Beat by an underage b&!

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