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

COMMENT YOUR GOD DAMN CODE

Name: Anonymous 2010-06-15 11:46

Hi.

It has come to my attention that you faggots need to learn to comment your code. I'm looking at you, C fags, with your unreadable declarations.

char (*(*imafaggot)[])();

Tell me what this is and you win a prize.

Programs should be written for people to read, and only incidentally for machines to execute. - SICP 101

Name: Anonymous 2010-06-19 22:24

>>1

This is not a valid declaration according to the defacto C standard.

The symbol is way too identifiable (it describes what it is [I] and what it does [fag stuff]) and therefore meaningful. Every good 1337 C programmer knows that you must keep your symbols short and only meaningful to the programmer up to 5 minutes after they decide on it.

If you want to be a 1337 n00b you could go with an initialism:
char (*(*iaf)[])();
But that is still kinda script kiddy because there is a chance, no matter how slight, someone might infer the intended meaning. But it is good enough to fake your way past an expert C code reviewer.

Also, this is 3 times slower than just giving it 1 letter as any excellent C programmer knows. The shorter it is, the more efficient it is.

char (*(*i)[])();

That is the best C declaration anyone can hope for.

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