42 comments

[ 3.6 ms ] story [ 86.7 ms ] thread
The vast majority of GitHub projects are not in production. I'm surprised there aren't more hits, although it is an awfully specific search query.
This is interesting :)
More intriguing, entertaining, and humorous phrases! I'm sure many of have thought, seen, or typed such things (perhaps not committed though).

Let's max out this concept.

1. "Fire me": https://github.com/search?utf8=%E2%9C%93&q=%22Fire+me%22&typ...

2. "This will break": https://github.com/search?utf8=%E2%9C%93&q=%22This+will+brea...

3. "Never do this": https://github.com/search?utf8=%E2%9C%93&q=%22never+do+this%...

4. "This is evil": https://github.com/search?utf8=%E2%9C%93&q=%22this+is+evil%2...

5. "This is insane": https://github.com/search?utf8=%E2%9C%93&q=%22this+is+insane...

6. "Insanity will follow": https://github.com/search?utf8=%E2%9C%93&q=%22insanity+will+...

7. "Why?": https://github.com/search?utf8=%E2%9C%93&q=%22why%3F%22&type...

8. "For the love of god": https://github.com/search?utf8=%E2%9C%93&q=%22for+the+love+o...

9. "If I could do": https://github.com/search?utf8=%E2%9C%93&q=%22if+i+could+do%... (the hopeful ones)

10. "What the hell am I doing?" : https://github.com/search?utf8=%E2%9C%93&q=%22what+the+hell+... (the confused ones)

11. "Why doesn't this work?": https://github.com/search?utf8=%E2%9C%93&q=%22why+doesn%27t+... (more confusion)

12. "Call me": https://github.com/search?utf8=%E2%9C%93&q=%22call+me%22&typ...

13. "Call me maybe": https://github.com/search?utf8=%E2%9C%93&q=%22call+me+maybe%...

14. "Terrible idea": https://github.com/search?utf8=%E2%9C%93&q=%22terrible+idea%...

15. "This code is awful":

Two of my favorites from Google code I used to work on (one that I wrote myself, and one that I ended up reviewing) were:

"I am going to hell for this."

"If this is not removed by xx-xx-2008, beat me over the head with a shovel." (Seen and removed in 2010.)

(comment deleted)
The strangest hit for me was this bit of C#:

            this.IsEvil = isEvil;
            screen.Souls.Add(new Soul(screen, new Vector2(position.X+texture.Width/2-Global.Textures["soul"].Width/2, position.Y), this.IsEvil));
That indeed looks like some dark magic.
I wonder why some of the exact matches are not highlighted in yellow?
Iirc it's because they use elasticsearch and the analysers will strip out stop words like 'and'...
It seems to depend on the highlighting rules for different languages.
They're mostly demos, as expected. Is anyone surprised?
Nope. Such comments are interesting to see the shared experiences and thoughts while writing code, and others are for snickering at the irony, especially when it's not a demo.
While vastly entertaining ( personal fav is "Call Me Maybe" ) does this create a moral obligation to audit some of these repos that might be in prod and alert the owners of possible security flaws?
How will you know what's in prod? How do you know what's a security flaw and what isn't?
Is anyone else getting tired of these github search posts? It would be nice if they were all in just one post. Actually the comment threads on this post are all that are needed.
Yup, tried to get a critical mass going here because, well, there are so many phrases that could be posted individually. I think we've proven that interesting phrases exist in code on Github, and now let's let people discover that on their own and free up space for other types of submissions. (https://news.ycombinator.com/item?id=11399790)
A lot of them were ".example" which is OK.

And others said "WILL remove this in production" - i.e. basically a TODO in code which is quite normal for code in development.

Pitchforks down.

Is anyone going to do a search for usernames and passwords?