0

So I've found this answer:

https://stackoverflow.com/a/21592733/888472

and following, in the same question, this one:

https://stackoverflow.com/a/64645886/888472

that only makes an irrelevant modification of a foreach

Should be flagged this second one as plagiarized of the first one, even when they are in the same question?

6
  • 1
    If you think it's similar enough to constitute plagiarism (as they seem to suggest in the comments that it effectively is: "the main difference is to use foreach instead of friends.ForEach") then flag away. Worst case scenario the mod that handles the flag disagrees. 2 answers being on the same question doesn't mean that plagiarism didn't take place (the exception generally being 2 answers posted in quick succession of one another, in which case, they're duplicate answers, but not plagiarism). Apr 12 at 19:42
  • 5
    Sorry, I'm not seeing anything that looks copied here; could you clarify what exactly was copied? Apr 12 at 19:43
  • Note that obvious duplicate answers that are not plagiarized can also be flagged (not as plagiarism), but it should be clear that they're actually duplicates (remember that the handling moderator is probably not a subject matter expert in the technology that the answer is about). (for example, these don't look like obvious duplicates, at least without a detailed explanation of why they're the same). Apr 12 at 19:45
  • @RyanM I suspected that, doing some review tools often skip tasks because are from a technology I don't know anything. Maybe is too hard to explain the difference in some cases, so I imagine it depends. In this case is the same answer but with other syntax that doesn't add anything to the case itself. But I understand your point, thanks a lot Apr 12 at 19:53
  • 5
    I don't see a case for plagiarism. The code in either answer hardly counts for something that's difficult to come up with independently. It's just...bog standard, almost boilerplate code for getting data and updating it. I understand a complaint that an alternative syntax isn't a useful answer but not that it's somehow plagiarised. Apr 12 at 20:00
  • The line var idList = new int[]{1, 2, 3, 4}; is very likely copied (the same in a third answer), but it is probably not sufficient evidence. Apr 12 at 22:21

1 Answer 1

5

In general copy-pasting an answer and changing one word (or a noticeably small amount of text) is indeed plagiarism if there are no attribution and should be flagged accordingly. Whether the version with attribution can be considered answer is up for you as a reader to consider in each individual case. Ideally such answer will include explanation why the change was needed making it acceptable on SO.

In this particular case there is really no plagiarism - iterating through collection of items in C# can indeed be done in different ways but there is very small variation of how you can actually write those - so code will look similar. Author of newer question was trying to make contrast between different iteration methods but realistically failed to highlight that. I personally agree with commenters on that post that there is not much value in that suggestion, but it is a valid suggestion answering the question. I would not vote it up or down, but I can see reasons for both votes (+7/-3 as of 2022 sound about a right split for me).

1
  • Thanks a lot Alexei, and so I consider you a guru in C# this clear a lot my mind! And thanks for your support in whole S.O. about C# Apr 12 at 20:37

You must log in to answer this question.

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