-6

Sometimes, answers could be very similar: use the same system/class/method/library, but they are not 100% copied.

I found an example with this question: How do I read / convert an InputStream into a String in Java? . I take the example of using BufferedReader & readLine(), so here are the answers (ordered by score):

Answer Score Date Explanation Try/Catch Method Comment
Answer 1 267 2011 No No Only return
Answer 2 68 2013 Not about code Only throws Yes Use System#getProperty
Answer 3 39 2011 Yes, with performance No No Approach #2
Answer 4 30 2012 Not about code Only throws Yes Say code is from Answer 1
Answer 5 22 2014 Yes Only throws Yes Use char[]
Answer 6 21 2012 Yes (in comment) Only throws Yes
Answer 7 1 2016 Very very quick Yes Yes
Answer 8 1 2016 No Yes Yes Few days after Answer 7

I put, in the table, only possible differences. We can see all the answers have similarities, especially the 7 & 8. They all use the same system, with not the exact same code, or the same presentation of code (i.e., what is around the requested behavior).

Are all of those considered as duplicate? Which one should be mentioned as the main? The older? Most upvoted?

Sorry for all the questions, but it's well focused on the same beam: What should we do with very similar answers, and until when it's (or not) duplicate?

30
  • 8
    Is there reason to believe any of those answers are completely original and unlikely to have been independently reached? And when you say "duplicated/plagiarised" - you do understand these are completely different things, right? Because the main contention here seems to be about similar answers with very little, if anything, being about plagiarism. And plagiarism is a rather serious accusation to levy if that's not at all what you mean.
    – VLAZ
    Apr 19 at 12:34
  • 1
    At a glance, none of those answers look even close to being plagiarism of one of the other answers.
    – Thom A
    Apr 19 at 12:48
  • 6
    Note: "Plagia" isn't a valid abbreviation of plagiarism...
    – Cerbrus
    Apr 19 at 13:01
  • 2
    What the addressed Q&A demonstrates, is that voting doesn't work, that people overestimate their ability to write proper benchmarks, that nobody checks the memory usage of their applications (yay garbage collection) and that allowing an infinite number of answers might not be the best of ideas. But it has very little to do with duplication or plagiarism.
    – CodeCaster
    Apr 19 at 13:03
  • 1
    @Cerbrus I'm too annoyed with our weather to get into a fight, but "this is how to handle plagiarism" is not a duplicate for "is this plagiarism".
    – CodeCaster
    Apr 19 at 13:06
  • 2
    @CodeCaster The answers there do discuss what "plagiarized" means, though. Sure, it's not the best dupe target, but I couldn't find a better one just yet.
    – Cerbrus
    Apr 19 at 13:08
  • 2
    Plagiarism is about copying existing answers. These are different enough to not be copies. There's only so many ways to write the same idiomatic code (this isn't code golf).
    – CodeCaster
    Apr 19 at 13:10
  • 1
    As for your edit, "Can they be flagged as plagiarism when the major part is the same, except the method declariation line? Or it should be a pur copy/paste?" - you have to see things in context. The question you link to literally is just about reading a byte stream and converting its bytes to a string. There are not many fundamentally different ways to do so, so such a question is bound to get similar answers. It becomes more apparent at more complex questions when people copy each other's code.
    – CodeCaster
    Apr 19 at 13:20
  • 1
    @CodeCaster I just take a very upvoted question to be sure it has multiple answers. Also, people could simply upvote the one they're using instead of posting the same behavior. The same problem could appear with all question, I will just not search during hours to find the same structure as it's only for the example. Also, it's not a one-line answer, that's why I choose this one
    – Elikill58
    Apr 19 at 13:24
  • 3
    And then we're back at my previous assessment: voting doesn't work (people upvote anything that looks like code), and unconditionally allowing answers to keep flowing in (barring "protecting" a question which doesn't really do that) may not be in the best interest of quality. All of that is unrelated to your question: anyone could come up with the same code for most (reasonably) trivial questions, only for more complex code similarities begin to stand out. So what you should do in this case: downvote every latecomer posting equal answers as earlier ones and move on.
    – CodeCaster
    Apr 19 at 13:30
  • 1
    There simply is no such thing as a duplicate answer, or at least not in things you as another user can do about them, but downvote. And indeed, in practice that accomplishes very little.
    – CodeCaster
    Apr 19 at 13:38
  • 2
    Ideally, "duplicate answers" (answers that are using the same approach as other answers but not providing any new insights) should just be deleted, but they may not be necessarily "plagiarised answers". One can just post an answer similar to any of those, without even reading (and thus noticing) existing answers. It happens a lot, whether they should be deleted is the community's choice, but perhaps not as "plagiarism".
    – Andrew T.
    Apr 19 at 14:12
  • 1
    A lot of late answers are plagiarism. The methodology: Plagiarise content from answers to the same Stack Overflow question, from answers to the another question, or from somewhere on the Internet (use a search engine and blindly copy the first result into the answer box). Alternatively, let ChatGPT generate it (but this is much easier to detect). Avoid attention and scrutiny (downvotes) in the new answer section by posting it as a late answer. Optionally, strip all normal text (leaving only a code dump), so nobody will understand or care to check the technical merit of the answer. Apr 19 at 14:37
  • 1
    cont' - Wait. Hope for a stray upvote (in particular, nobody will downvote a completely bogus code dump (because they don't understand it and/or it takes way too work to check and costs reputation points to do)). The more sophisticated ones first plagiarise on Medium by wholesale copying some (older) blog post outside (or even inside) of Medium. The goal is not plagiarism, but to do as little work as humanly possible (not producing anything of value, only increasing the entropy). Apr 19 at 14:42
  • 2
    Now that the question is not about plagiarism at all, I can't see any reason for a negative reaction to it, and am personally very interested in seeing discussion. One of the biggest things preventing us from cleaning up the "long tails of crap" is answers following the pattern OP has described. Apr 20 at 7:32

2 Answers 2

9

We can see all the answers have similarities, especially the 7 & 8. They all use the same system, with not the exact same code, or the same presentation of code (i.e., what is around the requested behavior).

Similar code isn't copied code. Similar code isn't plagiarized code. More than one person, with an experience in a language, could arrive at similar solutions independently.

Each person here is representing the work they did individually as their own work, and none of the code (to your own admission) is copied verbatim or close-to verbatim.

So no plagiarism here.

3
  • And what about duplicate ? Could we determine all of them as duplicate of each others ?
    – Elikill58
    Apr 19 at 16:04
  • I'm not sure what the hang-up is here @Elikill58 - are you looking to close them all as duplicates of the same question? That'd only make sense if the question scope and domain were very close to one another, not just because the solution is the same.
    – Makoto
    Apr 19 at 16:10
  • Yes, I was asking about if it were right to think they are duplicate as they have similarities
    – Elikill58
    Apr 19 at 18:48
5

You mention "plagiarism" and "duplication". Both have specific meanings in general, and even more so on this platform.

Plagiarism is about copying existing answers (from the same or related questions), or from external blog posts or other sources, without attribution. As an answerer, you should not answer a question with a copy of an answer from another question, in that case just flag the question as a duplicate. You also shouldn't copy external resources (manuals, how-to's, blogs, code sample gathering sites) without mentioning where you found them, checking their license, and linking back to them.

These answers to the question you link to, are different enough to not be copies. The question literally is just about reading a byte stream and converting its bytes to a string. Barring code golf, there are not many fundamentally different ways to do so, so such a question is bound to get similar answers.

When a question becomes more complex, people copy each other's code becomes way more apparent.

You seem to not like that people can earn reputation by merely rehashing existing answers to a popular question, and to that I agree: by adding yet another answer stating the same as existing ones, they add nothing of value to the site. They do stuff that could better be fixed by editing, and perhaps the reputation required to answer "protected" questions could increase relative to the question's "popularity".

All you can do when you see an answer that adds little value, is to downvote it. There's no other rules or actions you can apply; it is not forbidden to add another answer stating the same as existing answers in slight (or major) variations.

You cannot mark an answer as duplicate anyway.

Related:

Some phrases in this answer may be directly copied or paraphrased from the comments made by the brilliant user CodeCaster under this very question, who now that the question is reopened felt like those comments could be concatenated, cleaned up and summarized.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .