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

How many LOC have you written in 2007?

Name: Anonymous 2008-01-11 6:26

How many LOC have you written in 2007?

Name: Anonymous 2008-01-13 7:37

>>65
yeah, now that languages are actually productive people can do in a few lines what takes hundreds in toy languages like lisp or C

Name: Anonymous 2008-01-13 8:05

>>67
Like printing a textfile to standard output:

try {
    File f = new File("filename");
    FileReader fr = new FileReader(f);
    BufferedReader br = new BufferedReader(fr);

    try {
        String s = "";
        while (s = br.readLine()) {
            System.out.println(s);
        }
    } catch (IOException e) { }

} catch (Exception e) {
    System.er.println("Oh noes!");
} finally {
    br.close();
}


So much more concise than this:

FILE *f = fopen("filename");
char line[80];
while(fgets(line, 80, fr) != NULL)
    puts(line);
fclose(f);

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