Over recent weeks, I've encountered a user that has recently been just posting links to DB Fiddle in the comments, often without context. From a user perspective the comments are just:
(Obviously with a valid fiddle).
I have often flagged these "No Longer needed" if I encounter them a little while after they have been posted, as at the end of the day they are just a link, and if the comment is an attempt to answer then an answer should be posted.
On several occasions I've also asked the user to post their comments as answers instead, with a little explanation; however, they have never engaged and in some cases have simply reposted the comment (with no explanation) again after it has been removed. On some questions, I have also seen the comment have several upvotes or the question asker ask the user to post it as an answer (so they can accept it). These comments too have gone ignored.
The problem is that if DB Fiddle is ever unavailable, or if the user decides to delete the comment (or someone flags it and it's removed) the usefulness of the comment (read answer) is lost forever.
Am I therefore in the right position to replicate these comments into a community wiki answer, putting the code into the answer itself when I encounter them? I might add a little of my own context (perhaps to give a very brief but not in-depth explanation of what it does) but I would also cite the user's name and link to their profile to state they were the original author. If the commenter then comments they wish to post it themselves I can delete the community wiki or flag it to be attributed to them (I don't know if you can, so I'd appreciate this being answered too).
In cases where the asker asked the user to post the comment as an answer, so that can accept it (for example) it enables them to do so if they wish, or upvote it as it helped them, it can be indicated to others that the answer is helpful by the upvotes (or down), and the answer can't be removed on a whim. So the answer might look something like this:
The following solution is taken from Community's comment, where they posted a fiddle with a solution. Community, if you wish to post this as your own answer, please do and comment/flag here for removal.
This answer uses
function
and named methodology to achieve the results:Contents of the Fiddle
For reference, DB Fiddle is licenced under Creative Commons CC0, and it is stated on CC0 1.0 Universal (CC0 1.0) Public Domain Dedication the following:
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.
You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. See Other Information below.
As such my understanding (I am not a lawyer) is that reproduction of the work in the fiddle would not be breaking any licence laws.
This isn't a new user, by the way. They have several thousand reputation, and have posted 100's of answers in the past. They seem to simply not want to post them any more; however, such actions won't help the community become the repository of good questions and answers that it aims to be.