K&R 4EVAR
1
Name:
Anonymous
2007-08-23 12:29
ID:PxDvWqYx
One True Brace style is fucking shit. Discuss.
2
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.
3
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);}
4
Name:
Anonymous
2007-08-23 16:05
ID:R4FxbzBP
>>3
UNREADABLE CODE FUCK YEAH!
5
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.
6
Name:
Anonymous
2007-08-23 16:19
ID:PzH7hd0l
if(is_faggot(OP))
{
return true;
}
Oddly enough, it evaluated to true.
7
Name:
Anonymous
2007-08-23 16:22
ID:B6Gc6Vya
>>6
Looks like you've got a bug in your indentation style.
8
Name:
Anonymous
2007-08-23 16:22
ID:Heaven
>>6
// optimized
return is_faggot(OP);
9
Name:
Anonymous
2007-08-23 16:26
ID:B6Gc6Vya
>>1
BTW, OP, 1TBS & K&R are the same thing.
10
Name:
Anonymous
2007-08-23 17:31
ID:HzTkBi2p
KNF style or STFU
11
Name:
Anonymous
2007-08-23 17:46
ID:xkAEFKRr
#include <stdio.h>
int main(void)
{
printf("I LOVE GNU\n");
return 0;
}
12
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
13
Name:
Anonymous
2007-08-23 21:29
ID:/zwuDV5O
>>11
holy fuck gnu indentation style is terrible looking
14
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.
15
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 .
16
Name:
Anonymous
2007-08-24 0:47
ID:ZvZTUUCV
int main() { cout
<< "ONE \
WORD. THE VOLUNTARY\
INDENTATION OF CODE. PROG OVER"
<< endl;
return main(); }
17
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]
18
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;
}
19
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;
}
20
Name:
Anonymous
2007-08-24 4:14
ID:VhLuepWh
E XP ER T P RO GR AM ME R
21
Name:
Anonymous
2007-08-24 4:16
ID:Heaven
>>16
TWO WORDS, COUT AND ENDL, C++ OVER.
22
Name:
Anonymous
2007-08-24 10:01
ID:/sjnouhE
WHAT DOES THE 'C' IN COUT AND CIN STAND FOR?
23
Name:
Anonymous
2007-08-24 10:27
ID:eQrMasTX
24
Name:
Anonymous
2007-08-24 10:28
ID:Heaven
Cancer in, Cancer out !
25
Name:
Anonymous
2007-08-24 11:25
ID:4zAkjDCh
26
Name:
Anonymous
2007-08-24 12:50
ID:AAAN5+BF
C indented in K&R style is the most ugly unreadable shitcode evar. ΓΝΥ ε Θανατος!
27
Name:
Anonymous
2007-08-24 12:53
ID:xL5LdeAC
Console
28
Name:
Anonymous
2007-08-24 13:14
ID:Heaven
29
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")));"
30
Name:
Anonymous
2009-02-25 6:47
Enlightenment.
31
Name:
!PMnpXAfW1A
2010-05-03 16:16
wat
32
Name:
Anonymous
2010-11-14 6:51