22

New users can only post a limited amount of links. However, they might reserve this link for paste sites such as pastebin, bpaste and so on. In my opinion, these kinds of websites are useless as the code will be moved into the question anyway. Since I don't think banning links is very user friendly, perhaps a warning should be displayed instead. Something along the lines of:

It appears you're attempting to post a link to an off-site code sharing site. Have you learned about creating a Minimal, Complete, and Verifiable example or our Stack Snippet feature? If your code is not written in one of the languages supported by our Stack Snippet, please paste the code into the question box and consider choosing amongst these free online compilers.

The last link leads to the tag wiki which has a list of online compilers commonly used by the C++ community. I'm not too happy with this as it contains three links. The warning box probably shouldn't contain links at all. But the key points are there:

  • if you have a code dump and it can't fit into the question, reduce it into an MCVE.
  • use the feature that's meant to supersede jsfiddle and discourage code paste websites
  • use online compilers vetted by the community

The last one is a bit more difficult since it's hidden away in the tag wiki. Some canonical (albeit off-topic) questions may contain online compilers that are commonly used (especially if it supports multiple languages). The goal here is to introduce them to websites that will be familiar to the community.

What should be done here?

17
  • Why mention both StackSnippet and C++ tag wiki in the same warning?
    – nhahtdh
    Commented Nov 26, 2014 at 3:11
  • 3
    @nhahtdh Because Stack Snippets only support HTML, CSS and JavaScript. The C++ tag wiki was an example, obviously it will be different for other languages. But there will be overlap for ideone, etc.
    – user3920237
    Commented Nov 26, 2014 at 3:13
  • 2
    I like the fact you propose to point people to the help and educate them about posting better questions when they're about to do something wrong. Commented Nov 26, 2014 at 3:44
  • 4
    First of all, we shouldn't treat a link to pastebin or any other site different that all other cases where a user fails to post a MCVE - close with the appropriate close reason. Second, display as many warnings as you want, that doesn't stop people from not reading them. Third, there is exactly one programming language (JS) supported by stack snippets, and people already don't get that they can't paste C code in there; if we were to stick such a warning in peoples faces we would need to make abundantly clear that it's only for JS/HTML/CSS and nothing else.
    – l4mpi
    Commented Nov 26, 2014 at 9:56
  • @l4mpi I already have a separate proposal for that. Although you have a totally valid argument. OT: I just realized I had this tagged as support. D'oh!
    – user3920237
    Commented Nov 26, 2014 at 10:09
  • Isn't this really a feature request, in spite of being framed to encourage discussion?
    – jpmc26
    Commented Nov 26, 2014 at 22:01
  • @jpmc26 No, I already listed the disadvantages of my current proposal.
    – user3920237
    Commented Nov 26, 2014 at 22:27
  • @remyabel I have a feeling I haven't read some post about what is and is not a feature request because I'm not clear why that makes a difference. I only brought it up since you mentioned fixing the tags; sorry to bother you.
    – jpmc26
    Commented Nov 26, 2014 at 22:30
  • @remyabel When I said, "fixing the tags," I meant where you changed from support to discussion.
    – jpmc26
    Commented Nov 26, 2014 at 22:34
  • @jpmc26 That was a mistake. It wasn't meant to be tagged support initially.
    – user3920237
    Commented Nov 26, 2014 at 22:34
  • This is great, except, please do not mention Stack Snippets, because it already gets misused by new users.
    – Radiodef
    Commented Nov 26, 2014 at 23:17
  • @Radiodef Why not..? At some point of time they need to learn how to use it... Pointing them to the meta or blog post that explains how to use them wouldn't hurt IMHO.
    – T J
    Commented Nov 27, 2014 at 6:49
  • @TJ I guess I don't think most new users will read the link. ; )
    – Radiodef
    Commented Nov 27, 2014 at 8:35
  • 5
    There are legitimate uses of those sites. For example if they do not want to post code under the CC license of SO. Remember that you are not allowed to remove pastebin&co links and pasting the contents in the question, because the licenses may not be compatible. Only the OP should do that, you can only ask them to do it and downvote/vote to close the question.
    – Bakuriu
    Commented Nov 27, 2014 at 8:35
  • I often encourage users to paste SQL Server execution plans to such sites as they are verbose, XML format and nobody wants to see them in the question itself (even if they would be under the length limit). Commented Nov 27, 2014 at 8:47

0

You must log in to answer this question.