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

Pages: 1-4041-

GNU Coding Standards

Name: Anonymous 2011-01-21 18:32

GNU teaches you how to become a terrible programmer:

    http://en.wikipedia.org/wiki/GNU_Coding_Standards

[1] Retarded indentation
[2] use of goto
[3] Struct is not typedef'd
[4] Using &poop instead of a proper pointer
[5] Variables not declared at top of function (ANSI C requires it)
[6] global elements have no namespacing
[7] Expressions are not properly grouped (foo.bar < GIZMO_SNUFKIN_THRESHOLD / 2 is ambigious, what gets executed first? parentheses are your friends)

Name: Anonymous 2011-01-21 18:40

>>1
[5] Variables not declared at top of function (ANSI C requires it)
Sure, but in many cases it makes the code look much more complex than it is.

Name: Anonymous 2011-01-21 18:59

[7]
foo.bar < GIZMO_SNUFKIN_THRESHOLD is either 1 or 0
integer division: / 2
1 / 2 = 0
0 / 2 = 0

Clearly it's the division first, also, operator precedeIHBT

Name: Anonymous 2011-01-21 19:06

>>3
YHNBT. Since I'm serious about it. GNU Coding Standards are bullshit.

Name: Anonymous 2011-01-21 19:18

>>1,4
[1] Agree.
[2] Fuck you and your goto considered harmful
[3] Depends.
[4] Depends.
[5] Agree.
[6] Agree.
[7] Depends.

Name: Anonymous 2011-01-21 19:20

>>4
Everything you said makes you sound like a retard.  Reading it is equivalent to being trolled, whether you meant it that way or not.

Name: Anonymous 2011-01-21 19:25

>>4
All non-bitwise arithmetic operators have a higher precedence than comparison operators, so it really isn't ambiguous at all.

Name: Anonymous 2011-01-21 20:12

[1] Yes.
[2] Dijkstra never used Lisp.
[3] Not retarded, because it gives you a whole extra namespace to work with.
[4] How is this an issue?
[5] Not sure I have much to say on this. The compiler'd be all "oh look, you declared foo after your first function call, that's cool, i'll just move it up there"
[6] Isn't that C's problem and nothing to do with style?
[7] >>3,7

Name: Anonymous 2011-01-21 22:22

>>8
[6] Isn't that C's problem and nothing to do with style?

Why hello there, RMS. And since you don't care about the people who use... Nevermind that, Nobody will ever use your Software. Fortunately.

Name: Anonymous 2011-01-21 22:46

[5] Variables not declared at top of function (ANSI C requires it)
Bull and shit.

Name: Anonymous 2011-01-22 2:53

Variables not declared at top of function (ANSI C requires it)
Depends if they are writing C89 or not.

Name: Anonymous 2011-01-22 6:29

>>1
[1] Yes
[2] Depends
[3] Yes
[4] Yes
[5] Yes
[6] Yes
[7] Yes, but goto >>7

>>10
Nope.

>>11
C99

Name: Anonymous 2011-01-22 6:39

>>12
Gnu89/99

Name: Anonymous 2011-01-22 6:58

Gotos are considered harmful in context of lack of structured programming.  We have it now and it's ok to use controlled gotos, setjmps, continuations, exceptions and the like.
1) Agree
2) FUCK YOU OP ``FAGGOT''
3-) Agree

Name: Anonymous 2011-01-22 7:21

>>14
setjmps, continuations, exceptions and the like

You're doing it wrong.

Name: Anonymous 2011-01-22 8:15

"wah. I'm such an artist, I cannot stand the look of GNU's standards instead of being a real programmer and take everything as it is"
Why don't you gb2mdickie

Name: Anonymous 2011-01-22 8:22

>>16
I will, along with my job.

Name: Anonymous 2011-01-22 8:46

qbasic

Name: Anonymous 2011-01-22 8:51

being a real programmer and take everything as it is
There's a certain amount of "suck it up" you need to put up with as a programmer, but this phrasing is just wrong. Nobody interested in programming is satisfied with the way things are and that's sort of the point.

Name: Anonymous 2011-01-22 9:24

>>19
My point is that standards are established to assist expectations, and you just have to suck it up if old standards look ugly today's context.

Yes, I do recognise that sometimes, compromises in beauty have to be made for the sake of structure and compromises in structure have to be made for the sake of beauty.

Name: Anonymous 2011-01-22 9:30

>>20
So... compromises in compromises have to be made for the sale of compromises?

Name: Anonymous 2011-01-22 9:31

>>21
s/sale/sake/

Name: Anonymous 2011-01-22 9:44

[5] Variables not declared at top of function (ANSI C requires it)

Are you retard?  They should be declared at the top of the scope(read: after {), not at the top of the top of the function.

Name: Anonymous 2011-01-22 10:12

>>23
Top of the function == Top of the scope.

Name: Anonymous 2011-01-22 10:16

>>24

f() {
    int x, y, z;
    ...; // Valid Perl code.
    {
        int i, j, k; // Valid C code.
        ...; // Valid Perl code.
    }
    ...; // Valid Perl code.
    return 0;
}

Name: Anonymous 2011-01-22 10:23

>>24
Nice trolling, faggot. I'm on to you.

Name: Anonymous 2011-01-22 10:30

[1] agreed
[2]
>shitty programmers can't use goto. it makes programs too complex for them
>OMG GOTO IS HARMFUL, IT IS EVIL DON'T USE IT
[3]
uh, why? it is beneficial to see it is a struct or not
[4]
when you need address of poop, you use &poop. what is the problem?
[5]
then use a better compiler
[6]
lol, namespacing
[7]
division and multiplication are pretty much the first operations executed. foo.bar < GIZMO_SNUFKIN_THRESHOLD / 2 would be 0 if < is executed first (1/2 == 0/2 == 0). you have to be an idiot to confuse this

Name: Anonymous 2011-01-22 10:37

>>27

OMG GOTO IS HARMFUL, IT IS EVIL DON'T USE IT
Most people wo use goto have not the slightest idea ````why'''' they use it.

when you need address of poop, you use &poop. what is the problem?
When you want a pointer, you declare a pointer. When you want a reference, you declare a reference. If you do otherwise, you deserve to be murdered in the most gruesome way.

then use a better compiler
It's a standard for a goddamn reason.

lol, namespacing
At this point, I've realized that you never wrote anything remotely useful, or will ever get popular with your non-existant software.

division and multiplication are pretty much the first operations executed. foo.bar < GIZMO_SNUFKIN_THRESHOLD / 2 would be 0 if < is executed first (1/2 == 0/2 == 0). you have to be an idiot to confuse this
It's about grouping, and not about this particular statement. you have to be an idiot not to know what groups are :3

Name: Anonymous 2011-01-22 10:39

>>28
It's a standard for a goddamn reason.
I bet you never alias your pointers either, do you, FAGGOT?

Name: Anonymous 2011-01-22 10:50

>>28
Most people wo use goto have not the slightest idea ````why'''' they use it.
Met them all, have you?

Name: Anonymous 2011-01-22 11:22

Goto-sensei is a highly honorable and respected researcher in his field.  This petty and vindictive ongoing smear campaign is most distressing.

Name: Anonymous 2011-01-22 11:47

You PENORS think while and for is better? You fuckers, those are only poorly constructed macros.

Name: Anonymous 2011-01-22 11:49

The immature C standard is so immature that doesn't even require tail-call optimisation.

Name: Anonymous 2011-01-22 12:40

me gusta

Name: Anonymous 2011-01-22 12:43

>>34
LULZ!

Name: Anonymous 2011-01-22 12:50

>>34
I lol'd

Name: Anonymous 2011-01-22 12:51

>>34
nice.

Name: Anonymous 2011-01-22 12:57

>>36,37
Fuck off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off
Fuck
off

Name: Anonymous 2011-01-22 12:59

>>38
nice.

Name: Anonymous 2011-01-22 13:07

>>38
I lol'd

Name: Anonymous 2011-01-22 13:26

>>38
nice.

Name: Anonymous 2011-01-22 13:45

>>41
I lol'd

Name: Anonymous 2011-01-22 14:06

Posting just to get rid of that monstrosity.

Name: Anonymous 2011-01-22 15:34

>>43
nice.

Name: Anonymous 2011-01-22 16:10

GNU indentation is the best, K&R has to go, Allman is better than K&R but not as easy to pick out scope as GNU

Ive got my IDE set to GNU

Name: Anonymous 2011-01-22 16:10

>>44
NICE(1)                          User Commands                         NICE(1)



NAME
       nice - run a program with modified scheduling priority

SYNOPSIS
       nice [OPTION] [COMMAND [ARG]...]

DESCRIPTION
       Run  COMMAND  with an adjusted niceness, which affects process schedul‐
       ing.  With no COMMAND, print the current  niceness.   Nicenesses  range
       from -20 (most favorable scheduling) to 19 (least favorable).

       -n, --adjustment=N
              add integer N to the niceness (default 10)

       --help display this help and exit

       --version
              output version information and exit

       NOTE: your shell may have its own version of nice, which usually super‐
       sedes the version described here.  Please refer to your  shell's  docu‐
       mentation for details about the options it supports.

AUTHOR
       Written by David MacKenzie.

REPORTING BUGS
       Report nice bugs to bug-coreutils@gnu.org
       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
       General help using GNU software: <http://www.gnu.org/gethelp/>
       Report nice translation bugs to <http://translationproject.org/team/>

COPYRIGHT
       Copyright  ©  2011  Free Software Foundation, Inc.  License GPLv3+: GNU
       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
       This is free software: you are free  to  change  and  redistribute  it.
       There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
       nice(2)

       The  full documentation for nice is maintained as a Texinfo manual.  If
       the info and nice programs are properly installed  at  your  site,  the
       command

              info coreutils 'nice invocation'

       should give you access to the complete manual.



GNU coreutils 8.8.12-b3c95       January 2011                          NICE(1)

Name: Anonymous 2011-01-22 16:14

>>46

I find your formatting of man pages for /prog/ absolutely delicious.

Name: Anonymous 2011-01-22 16:17

>>47

I forgot to mention, even more delicious than CINNAMON-ROLLS.

Name: Anonymous 2011-01-22 16:22

>>46
I lol'd

Name: Anonymous 2011-01-22 17:00

>>46
No manual entry for I lol'd

Name: Anonymous 2011-01-22 17:16

>>46,50
nice.

Name: Anonymous 2011-01-22 17:25

>>50
I lol'd

Name: Anonymous 2011-01-22 17:40

>>48
A dreamer of pictures
I run in the night
You see us together,
chasing the moonlight,
My cinnamon rolll.

Name: Anonymous 2011-01-22 19:11

even though i would never consider programming in anything but
Racket (perhaps some javascript for client UI) i thoroughly enjoy
these C threads.

Name: Anonymous 2011-01-22 19:14

>>54
Actually, I doubt you ever use Racket. IHBT

Name: Anonymous 2011-01-22 19:43

[2] goto's are used in the Linux kernel

Name: Anonymous 2011-01-22 19:52

>>56
[2] and everyone bitches about it.

Name: Anonymous 2011-01-22 23:20

>>47
I find your formatting of /prog/ absolutely deciduous.

Name: Anonymous 2011-02-04 13:01

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