Mine are people who do this on C-like languages: if(numbers==NULL) { numbers=temp; numbers->next=NULL; } else { temp2=numbers; while(temp2!=NULL) { var=temp2; temp2=temp2->next; } temp2=temp; var->next=temp2; temp2->next=NULL; }
No spaces between operators. Opening brace on lines by themselve. Else statement not a continuation of the if-statement it belongs to Terse variable. camelCase
Else statement not a continuation of the if-statement it belongs to
Do you mean: if (predicate){ // something } else { // alternate }
I fucking hate when people do this. It's one of my programming pet-peeves. I scan the block level by line, if you put else after a brace it's harder to see and it just looks retarded. The only time you can put anything after a brace is in: do { // something } while (condition)
makes the else harder to distinguish which if-clause it branches from. On the other hand, } else { makes a clear distinction and it's not harder to see at all.
Name:
Anonymous2013-09-14 2:23
>>6 It branches from the previous brace, what is so hard to distinguish about that?
I hate Lisp. I hate Lispfags. I hate functional programming
Name:
Anonymous2013-09-14 8:03
I hate pretty much any code I don't write. I also end up hating a lot of the code I write.
Name:
Anonymous2013-09-14 13:51
I don't like FIOC, but I don't like if ( 1 )
{
penis ( ) ;
} either. What does /frog/ think of something like if (1) penis1(); penis2();. There's no need for then, and the if scope ends once the period is reached. Also, no indentation is being forced here, you could just write the whole thing in the same line.
>>29 So he can feel like an ENTERPRISE PROGRAMMER.
Name:
Anonymous2013-09-16 10:20
People arguing about brace styles stirs my rage. If you can't be bothered to run a beautifier before you begin to read/modify source, fuck you. If you can't be bothered to run a beautifier with a different set of options before you send patches back, fuck you. If you care at all about style but can't be bothered with informing people how to make their code conform to your style (i.e. put ``please run `indent -kr' on all source files before sending patches'' in the doc somewhere), fuck you.