Re:Show HN: What parts of your code are not original
by teamhappy on Saturday February 06, 2016 @08:16AM
(#11047646)
I've always wondered what the chances of two people writing the same chunk of code are.
[ Parent
| on HN ]
Re:Show HN: What parts of your code are not original
by hyperpallium on Saturday February 06, 2016 @08:52AM
(#11047741)
I got to mark an assignment at uni that I'd also done. There seemed to be just three different versions that were "obviously" copied... then I saw one identical with mine! With just wminor differences. I hadn't copied, and I couldn't see how they could have copied mine.
On reflection, there is much convention in code (this was c IIRC), loops, indices and cordinates variables are standard. And, each level of a problem only has a few obvious ways to approach it. The same underlying algorithm - especially in a uni course about algorithms - also tends to suggest particular designs.
The eye of an octopus is striking similar to the human eye. Does that mean they are related, other than by objective?
Re:Show HN: What parts of your code are not original
by nunobrito on Saturday February 06, 2016 @09:19AM
(#11047812)
This could be an investigation work to get hard data. From personal experience would say that exist many cases where a given code can only be written in a given manner. On other cases, people simply copied the code many years ago and never again know where it can be found.
For me, more relevant is to compare the variable names. If both code snippets have very similar variable names, then one of them is likely a copy.
Re:Show HN: What parts of your code are not original
by osivertsson on Saturday February 06, 2016 @09:40AM
(#11047890)
I've seen cases where names where changed, but comments retained with the same typos as in the GPL package...
Re:Show HN: What parts of your code are not original
by jgh on Saturday February 06, 2016 @03:22PM
(#11049630)
I've found a couple of Chinese companies offering compiled versions of my open source code before...They would change the class names and stuff but keep all the interface methods the same so it was pretty easy to figure out what they had done.
Re:Show HN: What parts of your code are not original
by nunobrito on Saturday February 06, 2016 @12:31PM
(#11048684)
Yes. Found this once on the code from a Chinese developer. Really made a big effort to rewrite the code but then the comments were done in a too perfect English that made it obvious as copied from elsewhere.
Re:Show HN: What parts of your code are not original
by koenigdavidmj on Saturday February 06, 2016 @01:06PM
(#11048852)
Rumor has it that two of the original UNIX guys (Thompson and Ritchie, I think) once wrote the exact same ~20 line program in PDP-11 assembly.
Re:Show HN: What parts of your code are not original
by hyperpallium on Saturday February 06, 2016 @07:23PM
(#11050824)
sorry, I accidentally mobile-downvoted. It's a good comment.
Re:Show HN: What parts of your code are not original
by richerlariviere on Saturday February 06, 2016 @08:26AM
(#11047672)
We could extrapolate this to the music field also.