Comment on: What is your favorite comment you came across in code?
0 25 Jun 2015 12:28 u/Unleeb in v/programmingComment on: What is your favorite comment you came across in code?
I have two that come to mind:
First one was a piece of software used to simulate some military hardware interface. Since I do not have access to the code anymore, this is a recreation from memory:
// The following code is sub-par. We know. There have been several
// attempts to improve the code, but all attempts have failed. To warn
// future brave souls, increase the counter when you admit defeat.
//
// Defeated souls count: 17
...
And another one, which I merely have observed on the Internet (Edit: As pointed out by Enemby; this one is from xkcd):
int random() {
return 4; // chosen by fair dice roll; guaranteed to be random
}
Comment on: A GPU Approach to Path Finding
How is this any different from a straight forward breadth-first search? Ok, it has been implemented on a GPU, but otherwise?
Disclaimer: It's been ages since I did anything related to "algorithms and data structures". It's also quite possible I'm stupid O_O
How could I not remember that?!