I did some research before asking this question, but in case I missed a guideline or Meta post that deals with this issue, please point me in the right direction. As elaborated further down, I've found posts to deal with the topic, however the solutions to those issues seem deprecated.
Problem
I'm majorly dissatisfied with the way users on SO are using external code hosters such as jsfiddle or Codepen. Due to the nature of the network, this isn't even an isolated problem, but spreads by people trying to be helpful and adhering to the guideline to include all necessary components in the answer by suggesting to post a jsfiddle link, posting an answer in that form, or by abstraction upvoting answers that primarily consist of a jsfiddle link.
I've even found some posts on Meta that appear to deal with collaboration links by blacklisting them. I understand that this kind of link has an especially short life span (at least regarding the orginal content), but I fail to see why that should be different with regular links. As proposed by another answer, collaboration links aren't more or less permanent than any other link on the web (I believe this to be true, while I don't agree with the conclusion that answer draws from this insight).
There of course is the Links to jsfiddle.net must be accompanied by code. message, however that's easily circumvented by marking just any part of the post as code. Furthermore, assuming external code hoster links are fine when any code is included in the same post seems very prone to errors to me - I wouldn't need a link to an external site if my answer contained everything to answer the question; and if it did, the link would be redundant.
Other than the common ground that snippets are preferable to external code hosters because of persistance, the issue for me personally is that my local security settings prevent me from viewing anything on jsfiddle specifically. This is a factor that I rarely see discussed, up to the point where I believe to be the only one having this problem.
When I do see argument in favor of external code hosters, it mostly seems to stem from habit, convenience (the ability to "fiddle" with the code), or lazyness (if someone worked on the solution in an external tool anyway, it's easier to link it than to copy it over).
Personally, I believe stack snippets to be superior for use within the SO network in all regards for the aforementioned reasons, as well as a few others that are less significant. All supposed benefits from jsfiddle links don't counterweight the severe short- and long-term disadvantages. There may be corner cases for which this doesn't apply, but according to my observations, an amount very close to 100% fall in the categories described in the previous paragraph.
Suggestions
I see multiple solutions that could tackle the issue:
- changing the guidelines to disallow those links and always use a SO snippet in their stead. Show a message with a link to that guideline page upon including a jsfiddle link in a question or answer.
- actually blacklisting all links to external code hosters, also showing the explanatory message
My preferred solution would be the first one, as it doesn't just enforce a certain rule, but teaches users why that rule is important, while not preventing anyone from using those links in the possibly existing corner cases.