u/Unleeb - 3 Archived Voat Posts in v/programming
u/Unleeb
  • home
  • search

u/Unleeb

0 posts · 3 comments · 3 total

Active in: v/programming (3)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: What is your favorite comment you came across in code?

How could I not remember that?!

0 25 Jun 2015 12:28 u/Unleeb in v/programming
Comment 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
}
10 25 Jun 2015 09:40 u/Unleeb in v/programming
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

0 24 Jun 2015 09:06 u/Unleeb in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.