Live data from Hacker News

What is the best comment in source code you have ever encountered?

stackoverflow.com

21–30 of 50 posts

Re: What is the best comment in source code you have ever encountered?

#21

  loop
    ...
    ...
    // sleep 10
    sleep 7 // Changed from "sleep 10" on 11-19-05
            // by jvj because Bruce in Buffalo bitched
            // that it ran too long.  Now he's happy.
            // The next time he bitches, change it to
            // "sleep 5".  That oughta buy us another
            // year before we have to rewrite it.
    ...
    ...
  until done do repeat

Re: What is the best comment in source code you have ever encountered?

#24
post #21

loop ... ... // sleep 10 sleep 7 // Changed from "sleep 10" on 11-19-05 // by jvj because Bruce in Buffalo bitched // that it ran too long. Now he's happy. // The next time he bitches, change it to // "sleep 5". That oughta buy us another // year before we have to rewrite it. ... ... until done do repeat

The speed up loop: http://thedailywtf.com/Articles/The-Speedup-Loop.aspx

Although I guess the punchline has come before the "joke"...

Re: What is the best comment in source code you have ever encountered?

#27
post #17

I hate the way SO only remembers you for a week or two, so when you return, you have to login, going to a separate screen and so on. Why do they have to make it so hard? What's the advantage in forcing frequent logins? Yeah, I know I should find some other StackExchange site, go there, create an account there, login there, and post this complaint there - but you know, that's just more of the same problem.

Yes, and when you log in it "forgets" where you wanted to go in the first place.

(They may have fixed this recently, but it was like that for the longest time.)

Re: What is the best comment in source code you have ever encountered?

#30
post #17

I hate the way SO only remembers you for a week or two, so when you return, you have to login, going to a separate screen and so on. Why do they have to make it so hard? What's the advantage in forcing frequent logins? Yeah, I know I should find some other StackExchange site, go there, create an account there, login there, and post this complaint there - but you know, that's just more of the same problem.

For a puzzled second there I thought you referred SO to significant other. I thought I was reading some obscure head-in-the-code-24/7 programmer joke.
Post reply on HN