News for hackers. Stuff that matters.
Re:Do you use blank lines in your code? by mmphosis on Saturday November 06, 2010 @04:46PM (#1877716)
Maybe. To visually divide sections,

- between groups of member variable declarations if any

- between function definitions if defining more than one

- after local variable definitions if any

- before a big ugly comment and probably within the big ugly comment, but the big ugly comment needs to be removed eventually, so no.

- and finally, before the ANSI "return 0;" in main

    int i;
    
    for (i; i < 10; ++i) {
        if (i % 3)
            array[i] += 2;
    }
http://hoop-la.ca/software/cat/cat.c
Re:Do you use blank lines in your code? by KevBurnsJr on Saturday November 06, 2010 @11:58PM (#1878614)
Use curly braces, even for single-line control blocks.