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

Pages: 1-

K&R 4EVAR

Name: Anonymous 2007-08-23 12:29 ID:PxDvWqYx

One True Brace style is fucking shit.  Discuss.

Name: Anonymous 2007-08-23 12:32 ID:Heaven

-kr -nut

I don't remember what it does, but it does the right thing. Thread over.

Name: Anonymous 2007-08-23 15:24 ID:B6Gc6Vya

1tbs is better than wasting a full line on a stupid brace. Of course, I do it like this:
void init_ncurses () {
  // set up our display. I forget what it all means already.
  initscr(); cbreak(); noecho(); nodelay(stdscr, TRUE);
  clearok(stdscr, TRUE);
  leaveok(stdscr, TRUE);
  nonl();
  intrflush(stdscr, FALSE);
  keypad(stdscr, TRUE);
  curs_set(0);}

Name: Anonymous 2007-08-23 16:05 ID:R4FxbzBP

>>3
UNREADABLE CODE FUCK YEAH!

Name: Anonymous 2007-08-23 16:06 ID:B6Gc6Vya

>>4
Yeah, C is pretty bad. I try to keep it to a minimum, but sometimes you just have to indulge yourself.

Name: Anonymous 2007-08-23 16:19 ID:PzH7hd0l

if(is_faggot(OP))
{
    return true;
}


Oddly enough, it evaluated to true.

Name: Anonymous 2007-08-23 16:22 ID:B6Gc6Vya

>>6
Looks like you've got a bug in your indentation style.

Name: Anonymous 2007-08-23 16:22 ID:Heaven

>>6

// optimized
return is_faggot(OP);

Name: Anonymous 2007-08-23 16:26 ID:B6Gc6Vya

>>1
BTW, OP, 1TBS & K&R are the same thing.

Name: Anonymous 2007-08-23 17:31 ID:HzTkBi2p

KNF style or STFU

Name: Anonymous 2007-08-23 17:46 ID:xkAEFKRr

#include <stdio.h>
int main(void)
  {
    printf("I LOVE GNU\n");
    return 0;
  }

Name: Anonymous 2007-08-23 19:07 ID:N4WPU6tG

You give me reasons to thank Guido for the forced indentation of code.
K&R or GTFO
>>11 is GNUFAG

Name: Anonymous 2007-08-23 21:29 ID:/zwuDV5O

>>11
holy fuck gnu indentation style is terrible looking

Name: Anonymous 2007-08-23 21:59 ID:MqmNfpYa

>>11

#include <stdio.h>
int main(void)
  {
    printf("I LOVE GAY SEX\n");
    return 0;
  }

fix'd.

Name: Anonymous 2007-08-23 22:40 ID:B6Gc6Vya

This shit makes me thankful for (). At least everyone using PAREN TYPAN languages has the brains to indent as in >>3.

Name: Anonymous 2007-08-24 0:47 ID:ZvZTUUCV


int main()   { cout
       << "ONE        \
WORD. THE VOLUNTARY\
 INDENTATION OF CODE.  PROG OVER"
                                       << endl;
return main();                            }

Name: Anonymous 2007-08-24 2:37 ID:gZmtaSNk

[/code]
int main(argc, argv)
int argc, char **argv
    {
        printf("Hello, World!\n");
        return 0;
    }
[/code]

Name: Anonymous 2007-08-24 2:37 ID:gZmtaSNk

>>17
lol what



int
main(argc, argv)
int argc, char **argv
    {
        printf("Hello, World!\n");
        return 0;
    }

Name: Anonymous 2007-08-24 3:52 ID:d/9fzA4a

#include <stdio.h>

int main(int argc, char **argv) {
 long long n=32497644146745702ll;
 puts(&n);
 return n%=n&!n;
}

Name: Anonymous 2007-08-24 4:14 ID:VhLuepWh

EXPERT PROGRAMMER

Name: Anonymous 2007-08-24 4:16 ID:Heaven

>>16
TWO WORDS, COUT AND ENDL, C++ OVER.

Name: Anonymous 2007-08-24 10:01 ID:/sjnouhE

WHAT DOES THE 'C' IN COUT AND CIN STAND FOR?

Name: Anonymous 2007-08-24 10:27 ID:eQrMasTX

>>22

Cancer

Name: Anonymous 2007-08-24 10:28 ID:Heaven

Cancer in, Cancer out !

Name: Anonymous 2007-08-24 11:25 ID:4zAkjDCh

Name: Anonymous 2007-08-24 12:50 ID:AAAN5+BF

C indented in K&R style is the most ugly unreadable shitcode evar.  ΓΝΥ ε Θανατος!

Name: Anonymous 2007-08-24 12:53 ID:xL5LdeAC

Console

Name: Anonymous 2007-08-24 13:14 ID:Heaven

>>27
Wrong.

Character.

Name: Anonymous 2007-08-25 21:24 ID:Heaven

$ php -r "file_put_contents("out.txt",str_replace(array("<",">"),array("[","]"),file_get_contents("in.txt")));"

Name: Anonymous 2009-02-25 6:47

Enlightenment.

Name: !PMnpXAfW1A 2010-05-03 16:16

wat

Name: Anonymous 2010-11-14 6:51

Name: Anonymous 2010-11-25 10:42

<

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