← Back to context

Comment by yesenadam

4 years ago

> The most copied StackOverflow snippet of all time

Maybe, but sounds like it's merely the Java snippet from SO found most often on github. Not sure why blog author didn't include the word "Java" in his title or the first paragraph:

> an answer I wrote almost a decade ago was found to be the most copied snippet on Stack Overflow

There is no evidence for this claim in the blog post, just that it's the "most copied Java snippet". And it's just based on occurrences in github. Maybe the most-copied snippet is an AWK or ffmpeg one-liner? Something that wouldn't find its way into a github repo. Or maybe something undetectably vanilla, like answers to "How do you write loops in language X?" Is there a way of finding out what actually is the most-copied snippet?

I don’t know how you’d find it, but if I had to bet it would be something to do with git.