661

I have often wondered at the practice on Stack Overflow, Server Fault, and the other sites where someone will ask a question and an answer will come in that says "Look here: https://link elsewhere". Rarely will the link have exactly the answer necessary -- often it's an entire article -- yet these answers get voted up.

Why is that, exactly? I realize this is subjective, but my own thoughts are that one should try and give the answer (even if the answer is 'no, it can't be done' or 'no, I don't think it can be done' -- very different answers) and then if you have a link that explains it, go ahead and post it within the answer.

What does the community think about this?

For more information, see "How do I write a good answer?" in the Help Center.

Return to FAQ index

4

8 Answers 8

786

Links are fantastic, but they should never be the only piece of information in your answer.

An analogy would be if you are standing at 100 Main St. and you ask where 98 Main St. is. A good answer would be:

"It is the next building over". points at building

If you instead include a link, you are saying:

"I'll direct you to a tourism information booth, and they will be able to provide you with your answer and much more!"

Which is great, however, you haven't answered their question at all, you've deferred the answering to somewhere else. And in this (fictitious) case the person has to take quite a detour to get to their destination.

When someone goes on Stack Exchange, the question "answer" should actually contain an answer. Not just a bunch of directions towards the answer.

You should provide context to all your links, otherwise the OP will have no idea what they are clicking into.

I think of all my answers on Stack Exchange as if they are technical emails to a client. And unless the client asked "Can you resend that link?" there is no excuse for sending them an official email with only links.

It's also a way of saying "I have absolutely no value beyond a search using a common search engine." Which is completely untrue, so why sell yourself short?

Link rot is a whole other reason why "only links" is a terrible response.

1
  • Pointing out that a solution even exist in the first place is some kind of answer already. Of course this low bar could not make sense for something itself as elemental as "asking how you add a button to an UI", but I don't think I have to point out how many questions can be absolute exoteric voodoo. And while I could certainly, uh.. "borrow" the reasoning and research somebody else did, depending on how much individual credit is due links to some more appropriate place could be justified. Or perhaps we are literally talking about having to use some program, and you can't post 1000 SLOC.
    – mirh
    Commented Nov 25, 2023 at 20:17
95

A link alone as an answer is a bad answer in my book. Links break and the answer becomes worthless later even if the linked material answered the question initially. At least if you include a summary, the answer can somewhat stand on its own.

See the fledgling FAQ on how to write a good answer.

4
  • 7
    I think this is the biggest argument in favor of always including a summary with links. But that's not to say a link only answer should be overlooked. Sometimes a summary isn't doable or applicable. And even if it is, sometimes you just don't have the time to do it. Other times it's just not all that relevant to summarize every link - this depends on the whole context.
    – cregox
    Commented Feb 17, 2010 at 23:31
  • 1
    Late to this party, but I wanted to add that if you're going to provide just a link because you want to be quicker about your answer, fine, but you should go ahead and edit the answer and provide more follow up. Best of both worlds. Commented Mar 30, 2012 at 16:42
  • 1
    This depends on the link itself; sometimes they encode information in the url itself that will remain useful even if the target disappears. As a related issue, fancy formatting to hide the actual URLs can degrade answers, by removing such information - as well as attribution - sometimes present in the URL. Commented Jul 16, 2012 at 18:54
  • A link alone is a bad answer , that deserved to be improved or downvote, but usually do not delete Commented Oct 14, 2023 at 19:54
33

What if the question is something like, "Where can I find the documentation on numeric format strings for C#?" Of course, in that case the entire correct answer is:



Generally, including a summary is good idea. But saying a link only is always bad isn't exactly right either, especially if that link points back to "official" documentation of some kind.

13
  • 1
    but...how many duff links are there are over at microsoft/msdn
    – redsquare
    Commented Jul 22, 2009 at 20:07
  • I see your point, but I'm not making a grand sweeping statement about links elsewhere. Even your links have descriptive text to them, which is more than some answers get.
    – romandas
    Commented Jul 22, 2009 at 20:07
  • 9
    MSDN is the worst for bad links. Commented Jul 22, 2009 at 20:20
  • 4
    That's why I will sometimes craft a very specific "I'm Feeling Lucky" link to point there. That way it will hopefully continue to get you to where you want. Commented Jul 22, 2009 at 21:05
  • 6
    It depends what part of MSDN. Real documentation, especially the .Net stuff, is generally stable. "Articles" are often less so. Commented Jul 22, 2009 at 21:14
  • 11
    I realize this answer is old, but I would say that a question for which the entire, correct answer is a link to another site is probably a bad question.
    – tvanfosson
    Commented Jan 11, 2012 at 16:20
  • 14
    Questions that merely ask for references to other resources are generally off-topic. That's what Google is for.
    – user102937
    Commented Jun 20, 2012 at 14:45
  • 1
    But some resources are hard to search for. "Where can I find documentation on Python's % operator?" seems like a fair question to me. Commented Nov 20, 2013 at 4:18
  • @RobertHarvey Agreed, but not all the users have the same skills. If you put good keywords in a cache clean browser you can find a good solution, not biased. The point is to select the right ones. For one is difficult for another easy. Maybe, since we want to solve a problem as well as to learn how to solve it, it can be useful to write even how that link was found, and the link will be updated by the new search of the engine.
    – Hastur
    Commented Sep 18, 2015 at 8:22
  • @user102937 I don't think everyone is capable of Googling everything. I find it very likely that someone doesn't know even the names of some things, but does know their essence.
    – Gulzar
    Commented Apr 1, 2021 at 16:45
  • Well, I'm from the future, and these particular links work just fine, even though MS mothballed MSDN years ago. (They even link to pages containing the expected information!)
    – SamB
    Commented Apr 25, 2022 at 21:46
  • the links break, after years they become 404 and the answer is lost.
    – Dorath
    Commented Dec 15, 2022 at 19:10
  • 1
    @Dorathoto, correct, a link alone is a bad answer , that deserved to be improved or downvoted, but usually do not delete Commented Oct 14, 2023 at 20:02
22

When I ask a question I am very happy if someone posts a link that quickly that solves my problem! - This is much better than if they decided they did not have enough time to post a “good” answer.

However when I read an interesting question I would rather I could learn something from the answer without having to look at other websites etc.

There is nothing stopping someone else that has more time reading the linked page and writing a more complete answer – then we get the best of both worlds.

3
  • 29
    I'd then comment to the question to post that link.
    – Arjan
    Commented Sep 22, 2010 at 17:44
  • 2
    @Arjan, a lot of users don't have the rep to comment Commented Aug 17, 2012 at 9:50
  • 2
    There's a reason for that...
    – ggorlen
    Commented May 25, 2020 at 20:59
17

I believe it is not good practice (although have been guilty of it myself). What happens if the link ceases to exist? The answer becomes worthless. I would prefer to paste the main gist of the answer into the answer so if the link ever goes down for whatever reason then the answer is still valid.

A large majority of my answers involve providing demos of code via a live pastebin, however if these external sites go down, what is the point? I have pushed for a Stack Overflow pastebin to minimise this risk, but so far it has fallen on deaf ears.

2
  • 5
    My only comment on using copy&paste from another site is potential copyright infringement. At the very least, if you are going to copy content from another site, you should provide a link to where that content came from. Commented Jul 23, 2009 at 12:27
  • 2
    @Tracy: Nobody said that the link shouldn't be posted too. Providing a summary or quote and the link should be optimal. Commented Sep 23, 2010 at 17:10
14

Another situation I do not see discussed here is similar to link rot.

A lot of users on Stack Overflow work for corporations. It is possible that Stack Overflow is not blocked by the company firewall, but the site you link to is. This could be the same if sites are blocked in certain regions, etc.

Following random links on webpages might be some people's view of the Internet, but it could turn into a security nightmare.

Note: Even if Stack Overflow handles bad links (through a flag system, or preemptive discovery), system administrators would still discourage clicking user submitted links.

You can also always hover over the link to see where it points before going there, but some people use URL shorteners, so this would not help every case.

3
  • 6
    People shouldn't be using URL shorteners here in any case.
    – ale
    Commented Apr 22, 2013 at 18:26
  • 1
    @AlEverett Completely agree, but I have seen it. Commented Apr 22, 2013 at 18:55
  • 3
    No URL Shorteners?
    – ale
    Commented Apr 22, 2013 at 19:00
10

Anyone coming to this answer here at the bottom knows no one likes link-only answers, so I actually do something about it and leave a custom comment instead of a canned one:

Although your answer is 100% correct, it might also become 100% useless if that link is moved, changed, merged into another one or the main site just disappears... :-( Therefore, please [edit] your answer, and copy the relevant steps from the link into your answer, thereby guaranteeing your answer for 100% of the lifetime of this site! ;-) You can always leave the link in at the bottom of your answer as a source for your material...

Standard SE rules for © apply (meaning: copy and use and don't credit me: the SE family of sites as a whole will become better!)

For easy copy-pasting, herez the codez:

Although your answer is 100% correct, it might also become 100% useless 
if that link is moved, changed, merged into another one or the main site 
just disappears... **:-(** Therefore, please [edit] your answer, and copy 
the relevant steps from the link into your answer, thereby guaranteeing 
your answer for 100% of the lifetime of this site! **;-)** You can always 
leave the link in at the bottom of your answer as a source for your 
material...
0
0

How do I make a link that goes nowhere?

Links may have many purposes, but it's nice to add a comment or two. I can think of at least one link that does not need introductions and the link itself is self-explanatory.

2

You must log in to answer this question.

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