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

Elegance vs. Performance

Name: Anonymous 2011-05-27 4:11

So /prog/, what would you choose between these two snippets of C code...


int *arr[3];
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;


or...


int i;
int *arr[3];
for (i = 0; i < 3; i++)
  arr[i] = i+1;


The second one is more elegant, but requires more operations.

Name: nambla_dot_org_rules_you 2011-05-28 11:04

>>49
You were, and probably still are, confused about how assembler gets "abstracted".

"Believe me when I say that I'm wholly unconcerned with what you believe. Don't you get it? I simply don't care. You don't matter to me, you don't matter to anyone, nobody gives two shits about you."

Maybe. But unlike you, I actually do this kind of shit for a living.

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