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: Anonymous 2011-05-27 22:23

>>41
Again you are poorly regurgitating common knowledge, everyone here knows what the C standard is, nobody will think you are intelligent for knowing what the C standard is.

If you could contain your learning disabilities long enough to read my posts you'd realize that I never once stated that the assembly code was C, I never once stated the optimal C solution was the assembly code and I never once stated that the optimal C solution was written in anything but ANSI C.

The assembly code was a continuation of the debate, if the optimal C solution already has been posted the problem (within the context of C) is solved and therefore not longer interesting. You probably like to jerk over old knowledge as evident by your continued stating of the obvious in this thread and I guess that is how inferior minds work. However we are superior to you and were able to expand on the problem putting it in a greater context (this is an abstraction of the problem, something you seem to struggle with).

Now, I realize that it might be humiliating to be publicly destroyed like this, especially when the person destroying to you is a male that is superior to you in every other aspect of life, including (but not limited to) athletic, academic and romantic accomplishments. However you must not let this affect you that much, even though you are probably devastated at this point rest assured that nobody probably thinks any worse of you, you didn't seem intelligent before this happened.

Judging by the way you interact with others you are probably somewhere around twelve or thirteen years old, that's good though, you have your entire life ahead of you. So go on child, leave the adults alone and play with your toys, as opposed to nursing your arse pain on /prog/.

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