20

I posted an answer to a question. Now I saw that another user post another answer, which basically just links to my answer. The user's answer is:

Here is a one-liner (stolen from Jonathan Mee's answer):

for(size_t i = 0, s = a.size(); i < output.size(); ++i) output[i] = b[i/s] + ' ' + a[i%s];

Full example here.

Now the code is mine, and I even already had a live example in my code along with an explanation of what the code does.

I'd consider whether this is a link only answer and I should flag it; but frankly, I get the link only thing wrong as often as I get it right. Should I be flagging this answer?

22
  • 1
    So did the user add nothing new and all of the content in the answer is from your answer? Commented Jun 9, 2016 at 16:47
  • 3
    Close as duplicate now?
    – ryanyuyu
    Commented Jun 9, 2016 at 16:51
  • @NathanOliver I mean he did either copy paste, or retype my example into a different cloud compiler and provide that link instead of the link to my cloud compiler. Commented Jun 9, 2016 at 16:56
  • 13
    Well he did change using a for_each and a lambda into a regular for loop. I am not sure if that qualifies as plagiarism or fair use. Commented Jun 9, 2016 at 16:58
  • @NathanOliver Ugh... this is not a dupe. I just read that as my code. Thank you for reading better than I do. Commented Jun 9, 2016 at 17:03
  • 1
    Indeed. I just mention it for those understanding it is a different one and suggesting to close as duplicate.
    – fedorqui
    Commented Jun 10, 2016 at 10:53
  • 2
  • 4
    Not wanting to join the plagiarism discussion: I really don't understand how "I turned someone else's answer into this oneliner" can be voted up more than the answer that presented the code in the first place.
    – CodeCaster
    Commented Jun 10, 2016 at 12:32
  • 3
  • 3
    I had a user downvote an answer of mine when my Regex was one tiny smidge away from being perfect, and that downvoter posted his tiny modification as an answer. I upvoted him and accepted, but this is the kind of crapola that I'm getting pretty tired of and am more and more considering SO to best be read only
    – Dexygen
    Commented Jun 10, 2016 at 18:11
  • 1
    @JarrodRoberson Speaking in terms of author rights not ownership rights. I'm assuming that was already clear from my question since you started your comment with "Technically". If you don't think it's clear let me know and I can clarify the question. Commented Jun 10, 2016 at 18:53
  • 1
    @JonathanMee, didn't realize my answer caused such an upset for you. The only reason I posted it, is that the OP specifically asked for "some elegant one liner" and neither answer had that. I've taken your idea of using / and % and wrote my own answer. Since the original idea was yours, I've added the "stolen" attribution. Also, your answer was downvoted -1, which I felt was unfair, so I've upvoted it. Lastly, to make up for your loss, I've checked some of your questions/answers and upvoted the ones I liked. If you still feel upset, let me know and I can just delete my answer. Commented Jun 11, 2016 at 1:03
  • 1
    @InnocentBystander if I understood this comment above correctly the question was posted when Jonathan was under the impression the code was identical. Commented Jun 11, 2016 at 11:00
  • 3
    @JarrodRoberson Technically that's incorrect. The author maintains ownership of the code, but grants a license to SO (and others).
    – Tom Morris
    Commented Jun 11, 2016 at 19:17
  • 1
    @JonathanMee: Heh, so if the poster of that answer had bothered to explain even a little bit, it would have flagged up the small difference in the code for you, and you wouldn't have thought it was purely a duplicate of your code. Definitely a low-effort answer. Commented Jun 12, 2016 at 7:42

3 Answers 3

27

I don't believe it's a link only answer, nor plagiarism, however annoying it is. As there is code in the answer, with a link for more info and there is attribution given to the original author.

The work on SO is allowed to be reproduced with attribution. So if it's on SO, to the original author, if it's not on SO, to SO and possibly the author.

I can't see the answer you are referring to, if it is an exact dupe, then as Servy says, flag it as an exact dupe.

In terms of flagging, the only suitable flag would be a custom mod flag if it is an exact dupe. (Which it is not).

The following as cited by Bart here, originally by Pekka 웃 here

"Is it considered plagiarism on StackOverflow.com to take material from another answer on the same question and re-use it with modifications?

No. You are expressly permitted to do so - as long as you give attribution."

very dry sense of humour here :D

9
  • 1
    Yeah it's not plagiarism. It might as well be a link-only answer - the quotation protects it from being link-only, but it is still a low-effort answer. Basically, use your common sense and state the problem clearly when flagging. Don't weasel it.
    – BoltClock Mod
    Commented Jun 10, 2016 at 11:47
  • 1
    @BoltClock what do you mean don't weasel it? I am reluctant to flag as link only meta.stackoverflow.com/questions/319350/… meta.stackoverflow.com/questions/318919/…
    – user3956566
    Commented Jun 10, 2016 at 11:50
  • 1
    i.e. don't say it's a link-only answer, don't say it's NAA, don't say it's plagiarism - just state plainly that "this answer consists of nothing but a quotation of an existing answer" for best results.
    – BoltClock Mod
    Commented Jun 10, 2016 at 11:51
  • @BoltClock yeh, but I've had a lot of flags declined for answers like that. Although I agree we don't need them on the site, I cannot recommend people to flag when they may well be declined. See links above.
    – user3956566
    Commented Jun 10, 2016 at 11:53
  • @BoltClock The answer contains "orginal" code. The code the users has is a modified version of the OP's code. Commented Jun 10, 2016 at 12:03
  • @NathanOliver yes! see the edit! great minds and all that
    – user3956566
    Commented Jun 10, 2016 at 12:04
  • 1
    @NathanOliver: If the answer we're discussing is a derivative work of the source answer, I agree that's fine, since obviously the author put effort into remixing it.
    – BoltClock Mod
    Commented Jun 10, 2016 at 12:06
  • 2
    @BoltClock Yes it is a derivative. They used the same concept but did modify it somewhat. Not sure exactly what the line is but this one looks like it is on the okay side of the line. Commented Jun 10, 2016 at 12:08
  • 1
    @NathanOliver: Definitely.
    – BoltClock Mod
    Commented Jun 10, 2016 at 12:09
10

No, you should not flag it.

It was easy to find the answer you mentioned and it looks like improved (different) version of your answer:

  1. Your answer was used as an idea (this is specifically mentioned, so no plagiarism here).
  2. It's different (for instead of for_each) and take less lines (the reason why answerer decided to post his answer I guess).

It doesn't fall to link-only category neither: it references your answer as an original source and only wrote what will be different. The link to his working sample is here to prove what the final code will work, you still have your credits.

P.S.: I have added explicit reference to your answer in his answer.

P.P.S: You can edit other people answers ;)

1
  • The critical part here is "2. It's different". Otherwise, where would be the value of just duplicating an answer (giving or not giving credit)? Commented Jun 10, 2016 at 12:32
3

Yes, you should flag that answer as plagiarism. When quoting someone else it's important that it be a part of the answer that also includes original contributions of the author, and not the entirety if the answer.

Note that the answer isn't a link only answer. It does answer the question. You should not be flagging it as NAA.

If you feel that your answer is also a suitable answer to the question, then flag the question for closure as a duplicate while you're at it.

7
  • 21
    It is not plagiarism, plagiarism is using another's work without attribution and purporting it to be your own.
    – user3956566
    Commented Jun 10, 2016 at 10:55
  • 3
    Dictionary definition of plagiarism. Not applicable here. Commented Jun 10, 2016 at 11:19
  • @Yvette That's one way of plagiarizing content. It's not the only way to plagiarize content.
    – Servy
    Commented Jun 10, 2016 at 12:46
  • 4
    @Jean-FrançoisCorbett And here's another definition of plagiarism that does specifically define this as plagiarism. "copying so many words or ideas from a source that it makes up the majority of your work, whether you give credit or not "
    – Servy
    Commented Jun 10, 2016 at 12:47
  • 6
    That's based on the USA definition of copyright. Can't apply, you implicitly handed over the right for anybody to copy the work by posting to SO. Only proper attribution is required. It wasn't proper in the quoted answer but that's very easy to fix of course, took me 20 seconds. Commented Jun 10, 2016 at 15:50
  • 2
    @hans no, your talking copyright. Plagiarism is different. You can plagiarize content without violating any laws, such as copyright.
    – Servy
    Commented Jun 10, 2016 at 16:32
  • 3
    At least that article you linked to is based on a very specific law that helps people interpret what plagiarism means. What you invoke in your answer looks merely based on your personal preferences. Commented Jun 10, 2016 at 16:39

You must log in to answer this question.

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