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

Redundant blank lines

Name: Anonymous 2013-01-25 4:36


void *foo (void)
{
        void *bar = faggot ();
        if (bar == NULL)
                return NULL;
        return anus (bar);
}


Or


void *foo (void)
{
        void *bar = faggot ();

        if (bar == NULL)
                return NULL;

        return anus (bar);
}


Do you sprinkle your code with redundant blank lines? When is it okay to do it?

Name: Anonymous 2013-01-25 4:47

I used to but I quit.

Name: Anonymous 2013-01-25 5:22

If I need more than 10 lines per block I need to reconsider what I'm doing.

Name: Anonymous 2013-01-25 6:41

anything for readability, bro

Name: Anonymous 2013-01-25 6:43

>>4

Name: Anonymous 2013-01-25 7:09

retarded, wastes screen space.

Name: Anonymous 2013-01-25 7:11

man 1 indent

Name: Anonymous 2013-01-25 7:13

>2013
>not writing all ur code on single line
ishygddt

Name: Anonymous 2013-01-25 7:27

>>1
Only after those 'local variable' things.

Name: Anonymous 2013-01-25 10:19

>>8
LEEEEEEEL E/GIN /G/ MEME ROFL XDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
>LE MFW WHEN LE /G/ROSKI USES LE /B/ MEMES
>ROFL
>LEL
>XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
E/G/IN /G/IN /G/RO XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Name: Anonymous 2013-01-25 10:39

Here for an example: http://lxr.linux.no/linux+v3.7.4/kernel/exit.c

Check out do_exit written by linus himself. Looks like redundant blank lines has been sprinkled at random. Same goes for multiline comments, some times there is a blank line preceeding it, some times not. Indent is inconsistent too.

Name: Anonymous 2013-01-25 10:44

>>5

Name: Anonymous 2013-01-25 10:53

>>12
Define what >>4 said, what's the rule for readability? Of course it has to be unambiguous otherwise it's just subjective fluff. Sloppy I'd say, "what ever you feel is readable for the moment."

Name: Anonymous 2013-01-25 10:53

>>11
That looks disgusting.

Name: Anonymous 2013-01-25 11:29

>>10
I lel'd so hard my cock exploded.

Name: Anonymous 2013-01-25 11:51

>>15
Now point me to a abelson and sussman quality analysis of blank spaces...

Name: Anonymous 2013-01-25 11:53

>>16
No because my le sides still hurt from "E/G/IN /G/IN /G/RO" and "/G/ROSKI".

Name: Anonymous 2013-01-25 11:56

I don't even know what it's suppose to mean, it's like laughing at random garbage. But, you know, kids can have fun with anything so in some way I understand, altough I really don't, what the fuck?

Name: Anonymous 2013-01-25 12:00

I wonder how many professional programmers with deep insights into programming visits this board. I don't count Linus, as he has done a well job displaying all of his incompetence by GPL-ing his source. I'm talking Sussman and Abelson quality! Can I only count myself? That's it?

Name: Anonymous 2013-01-25 12:05

>>19
I don't know if it counts but I masturbate to anime a lot. That makes me a professional programmer, right?

Name: Anonymous 2013-01-25 12:38

>>20
i masturbate a lot to guys passionately sucking on ass flowers, i suppose it's a lisp thing.

Name: Anonymous 2013-01-25 12:59

I write like this:
void *foo (void) {
        void *bar = faggot();
        if (bar == NULL) {
                return NULL;
        }
        return anus(bar);
}


Not making a new line for opening braces saves lines in the long run, but requiring braces for single statement loops and conditionals has the side effect of introducing an amount of ``pseudo-whitespace.'' I rarely feel the need to add superfluous whitespace as a result.

Name: Anonymous 2013-01-25 13:07

>>8
>not writing all ur code on a single line
"There is no greentext; there are no implications."
BACK TO THE IMAGEBOARDS, PLEASE

>>10
Shitposting shitposters is still shitposting.

Name: Anonymous 2013-01-25 13:08

void *frozen (void){void *xarn = erika();if(xarn == tdavis) return godsays();return mentifex(xarn);}

Name: Anonymous 2013-01-25 13:26

What do you feel about indents lining up with statements in a for or conditional body? Isn't it a bit hard to see where the body begins?


void *foo (void) {
        void *bar = faggot();
        if (bar == NULL) {
                return NULL;
        }
        for (bar->crap = 0;
             jewdo(bar) &&
             bar->op != 0 &&
             bar->jew > bar->crap;
             bar->crap++) {
             bar->op--;
             egin (bar);
        }
        return anus(bar);
}

Name: Anonymous 2013-12-01 17:15

%░████▀▀▒▒▒▒▒░░░░▄▄▄▄▒▒▒▀▀███████░░
%░░██▒▒▄▄▒░░░░▒▒▀▒▒▒▒▒▒▒▒▒▒▒▒▀▀██▌░
%░░█▌▄▀▀▒▒▒▒▒▒▒▒▒▄▄▄▄▄▒▒▒▒▒▒▒▌▐▒█▐░
%░░▀▌▒▒▒▄▄▄▒▒▒▒▒▀▄▄█▀▒▒░▒▒▒▒▒▐▒▐▒█░
%░░░▐▒▄▀██▄▀▒▒▒▒▒▒▒░░░░▒▒▒▒▒▒▒▌▌▒█░
%░░░▐▒▒▒▒▒▒▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▌▄▀█░
%░░░▐▒▒▒▒▒▒▌▒▒▒▒▀▄░░░▒▒▒▒▒▒▒▒▒▌▐██░
%░░░░▌▒▒▒▒▐▒▒▒▒▄▄▀░░░░▒▒▒▒▒▒▒▒▒▌▒█░
%░░░░▐▒▒▒▒▒▀▀▒▀▒▄▄▄▄░▒▒▒▒▒▒▒▒▒░███░
%░░░░░▌▒▒▒▄█▀▀▀▀▀▀▀▀█▒▒▒▒▒▒▒▒░▀▐██░
%░░░░░▐▒▒▒█▒▀████▀▀▒▐▌▒▒▒▒▒░▄▒▒▐░░░
%░░░░░░▐▒▒▀▒▒▒▒▒▒▒▒▒▒▐▒▒▒▒▄▒▒▒▄▐░░░
%░░░░░░▀▌▒▐▌▐▌▀▌▀▌▀▌▀▌▐▀▀▌▒▐▐▌▌▌▌░░
%░░░░░░░█▒▐▒▐▌▒▌▄▌▐▌▄▒▐▌▄▌▒█▌█▒▒▐░░
%░░░░░░░▐▌▌▒▐▌▒▌▒▒▐▌▒▄▐▌▀▄▒▒▒▒▒▒▒▀▄
%░░░░░░░░▀▒▐▀▀▒▀▒▒▀▀▀▀▒▀▒▀▀▒▒▒▒▒▒▒
%YOU'LL COWARDS DON'T EVEN SMOKE CRACK
%POST lN 3 THREADS OR YOU'LL COWARD

Name: Anonymous 2013-12-22 9:30

YOU HAVE BEEN VISITED BY LE GREEN SAD NEGRO FROGE OF SADDNESS
REPOST THIS IN 100`000 threads or be a frog!

`
           ████████     ██████       
         █░░░░░░░░██ ██░░░░░░█      
        █░░░░░░░░░░░█░░░░░░░░░█     
       █░░░░░░░███░░░█░░░░░░░░░█    
       █░░░░███░░░███░█░░░████░█    
      █░░░██░░░░░░░░███░██░░░░██    
     █░░░░░░░░░░░░░░░░░█░░░░░░░░███ 
    █░░░░░░░░░░░░░██████░░░░░████░░█
    █░░░░░░░░░█████░░░████░░██░░██░░█
   ██░░░░░░░███░░░░░░░░░░█░░░░░░░░███
  █░░░░░░░░░░░░░░█████████░░░█████████
 █░░░░░░░░░░█████ ████   ████ █████   █
 █░░░░░░░░░░█     █ ███  █    ███ █   █
█░░░░░░░░░░░░█   ████ ████   ██ ██████
░░░░░░░░░░░░░█████████░░░████████░░░█
░░░░░░░░░░░░░░░░█░░░░░█░░░░░░░░░░░░█
░░░░░░░░░░░░░░░░░░░░██░░░░█░░░░░░██ 
░░░░░░░░░░░░░░░░░░██░░░░░░░███████  
░░░░░░░░░░░░░░░░██░░░░░░░░░░█░░░░░█ 
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
░░░░░░░░░░░█████████░░░░░░░░░░░░░░██
░░░░░░░░░░█▒▒▒▒▒▒▒▒███████████████▒▒█
░░░░░░░░░█▒▒███████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░░░░░░░░█▒▒▒▒▒▒▒▒▒█████████████████
░░░░░░░░░░████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░░░░░░░░░░░░░░░░░██████████████████
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█    
██░░░░░░░░░░░░░░░░░░░░░░░░░░░██     
▓██░░░░░░░░░░░░░░░░░░░░░░░░██       
▓▓▓███░░░░░░░░░░░░░░░░░░░░█         
▓▓▓▓▓▓███░░░░░░░░░░░░░░░██          
▓▓▓▓▓▓▓▓▓███████████████▓▓█         
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██       
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█       
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█

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