33

People have the habit of referring to answers/comments in the below fashion. This has some problems (as stated under each one)

The other answer under this question says that <...>
This assumes that more answers will not be added

The third answer from the top is correct but <...>
This assumes that the visitor is using the same ordering and that future voting will not cause a position change

The most upvoted answer is wrong.
This assumes that other answers can't overtake it

The accepted answer is outdated.
This assumes that the author of the question won't suddenly change their mind

The answer by <username> is correct for the most part but needs these improvements <...>
This assumes that the username will not be changed

The comment under this post makes a valid point.
This assumes that the comment won't be deleted

The comment by <username> suggests that <...>
This assumes that the username won't be changed

Lines like these assume that the indicator they are relying on (the username, the relative position of the post/comment with respect to the current post, the number of upvotes, the accepted check-mark, the number of answers under the post) are constants and will not change with time - which is not true.

Usernames change. The order of the answers depends on the net score of the post and the ordering choice of the viewer. The number of upvotes changes with time and a lower-ranking post now might win later on and replace the highest upvoted post. The 'acceptance' of a post is solely dependent on the author of the question's very human (susceptible to change) mood. New answers can be added in the future (hence changing the total number of answers).

Some real examples to express myself better:

  • This answer by Antonio Bakula says: "(like one in most upvoted answer)" - I have no idea which answer they are referring to as the most upvoted answer can change.

  • This answer by Marcel Degas says: "the most upvoted answer for that post was not super clear and there was no code example" and links to a post - on that post I find 7 answers. The current most upvoted one has a line of code in it. Now I need to guess what they meant by "there was no code example" and what is and isn't considered as a "code example". This would have been so much more easier if they would have just linked to the answer that they were referring to...

  • Or this answer that was written by michaelgmcd - which originally inspired me to write this post - says: "but seeing that the other (albeit more upvoted answer)" while it itself is the most upvoted answer! How am I supposed to know what they were referring to? Being <10k how do I know if that answer isn't deleted?

Search result of "most upvoted answer" for example.

My point being that improper referencing of this sort is way too common and as time goes on it can become a big issue where no one is sure who is referring to who. How can we resolve this?

34
  • 10
    "People have a habit of referring to usernames in posts by adding a @ symbol before them: '@<username> says that...'. *" this has some historical traction to it. There were multiple platforms where usernames would start with an @. This isn't exactly still the case but you *can use @ to explicitly mention some user in different platforms. Like in comments here and some chat platforms. So, it has become an internet "slang" when talking about users. It does make it easier to distinguish usernames from other words that are not usernames.
    – VLAZ
    Aug 4, 2021 at 7:03
  • 2
    "So I generally remove them while editing." That's also fine, IMO. We don't need to use @ everywhere. It's a bit "archaic" in Internet use. I personally like to format usernames in bold or (if available) underline. That way they are visually distinguishable and it's easy to see that I'm not just using a word but it's a special term. Context will make it clear it's another user.
    – VLAZ
    Aug 4, 2021 at 7:04
  • 10
    When talking about comments in answers, it's even better to just quote the comment, as comments should be considered temporary... They can disappear at any moment.
    – Cerbrus
    Aug 4, 2021 at 7:14
  • 4
    I also never have noticed this to be a significant issue...
    – Cerbrus
    Aug 4, 2021 at 7:15
  • 13
    Also, your minor suggestion about the @: It's a visual indicator that we're talking about a username. A link to the actual user is better (as names can be changed), so don't only remove the @ when editing. (Either add a link or don't change it)
    – Cerbrus
    Aug 4, 2021 at 7:23
  • 2
    Wouldn't this be better formatted as a separate question (how to refer to other answers) and answer (with your suggestions)? Then it would actually allow alternative recommendations and voting on them.
    – jpa
    Aug 4, 2021 at 7:43
  • 4
    Seems like a bit of a rant to me. Personally, I like referring to users in answers using @ as @Cerbrus says it's a visual indicator we are talking about a username. The other point about linking comments is valid though and I’ve been doing that since I first came to site.
    – user692942
    Aug 4, 2021 at 7:48
  • 3
    @MisterMiyagi It's kind of hard to have a good repository of knowledge if the knowledge can disappear. Yes, it does happen but I've not seen it on such a massive scale to just expect posts to suddenly never be relevant again.
    – VLAZ
    Aug 4, 2021 at 8:19
  • 3
    @MisterMiyagi Just doing the very minimal required doesn't mean it's not confusing. You can easily quote a [comment](www.example.com) verbatim and link to it at the same time. Then everyone clicking on the link will know exactly which post is was on.
    – Scratte
    Aug 4, 2021 at 9:20
  • 4
    @MisterMiyagi my point isn't that you must give a reference to every single good idea that you have from someone else... My point is that if you are already mentioning/referring to someone then provide a link instead of just giving a verbal reference so that I can understand what you are saying even after a long time has passed and the scene isn't the same anymore... Aug 4, 2021 at 10:00
  • 9
    Recurring favorite: "Above answer ....".
    – Yunnosch
    Aug 4, 2021 at 10:39
  • 4
    @Yunnosch Even better: "The bellow answer..." Aug 4, 2021 at 12:02
  • 4
    I’m voting to close this question because this is not a question.
    – Sinatr
    Aug 4, 2021 at 13:41
  • 3
    This is not a minor issue nor a rant, but an incredibly important topic. The entire "comments are temporary and should be treated as such" has always had a strong whiff of fecal matter about it, because for better or worse comments often provide vital metadata about questions and answers. Since the Stack Overflow platform is so limited in so many ways (prime examples: being unable to change which answer is accepted in favour of a newer one; being unable to sort answers by "newest"), comments have ended up as a way to provide some of that missing functionality!
    – Ian Kemp
    Aug 4, 2021 at 14:15
  • 3
    I am seeing that close votes are slowly increasing on this question. Some advice on how to edit the question to make it on topic would be much appreciated... I for one can’t understand what is wrong with the current state of the question :/ Aug 5, 2021 at 7:22

2 Answers 2

25

Please link directly to the comments/answers that you refer to in your posts. It takes only a few seconds but leads to a less confusing and more convenient visitor experience.

Like this:

(Where strike means 'remove the content' and closed square backets means 'add this content')

The other [this] answer under this question says that <...>

The third [this] answer from the top is correct but <...>

The most upvoted [this] answer is wrong.

The accepted [this] answer is outdated.

The answer by <username> is correct for the most part but needs these improvements <...>

The [this] comment under this post makes a valid point.

The [this] comment by <username> suggests that <...>

Note: By this example, I don't mean that all links should follow this set format! What I mean to say is to actually link to the answer/comment instead of just giving a verbal reference. You can always phrase it into your posts as you please.

Benefits of doing this:

  • It makes it easier and faster for visitors to find what is being referred to. And understand your post better.
  • It removes the need for visitors to guess which answer or comment might be referred to.
  • In the case of a deleted answer/comment having a link that leads to nowhere and a link to the user profile, from where you can find the user name, and not finding that user name on the page can help the visitor understand that the referred answer/comment is in-fact deleted (hence they won't waste their time reading every single answer/comment to guess). This is especially useful for <10k users and anonymous users - who can't see deleted answers.

Note to editors:

If you find a post that doesn't do this then it is a good idea to try and edit a link in. But make sure that you are clear about what is being referred to first! Otherwise, it will lead to even more confusion. If you aren't a 100% sure which comment/answer is being referred to; then ping the author of the post for clarification and only then edit the link in.

Other remarks:

  • You can link to answers by clicking on the 'Share' button and copying the URL to your clipboard. For comments, right-click on the timestamp next to the comment and copy the link. See this answer.
  • For comments I would highly recommend you to quote the relevant content directly in your post - it removes the need for the visitor to even click on the link and keeps your post self-sufficient as comments can disappear at any moment. But don't remove the link to the comment & username as those are needed for proper attribution! Refer: How to reference material written by others.
  • Minor suggestion: People have a habit of referring to usernames in posts by adding a @ symbol before them: '@<username> says that...'. This is okay but it must be noted that this doesn't really do anything unless it is used in a comment. It doesn't ping the user. Also, in my opinion, it makes the sentence grammatically wrong as the @ symbol is read 'at' so I end up reading the sentence 'the suggestion by @Sabito is wrong' as 'the suggestion by at Sabito is wrong'... So I generally remove them while editing. It is up to you if you choose to remove it or not but make sure that you at least link to the user profile as the link helps in visually separating the username from the content of the post.
9
  • 1
    I hate it when people do this. I don't want to click a random link that takes me god knows where. I've seen places where [this] answer isn't even on the same question! (Or even has been deleted in the interim.) Why not either A.) omit the reference entirely, or B.) summarize? ("In addition to the foobar algorithm, you could alternatively try the built-in whatsit functions added in version 3.9") Aug 4, 2021 at 17:36
  • 10
    @RoddyoftheFrozenPeas Then don't click it.
    – Scratte
    Aug 4, 2021 at 20:06
  • 1
    If it's not important enough to click, we clearly should just omit it then, eh? Aug 4, 2021 at 21:25
  • I would go so far as to omit the "by <username>" part as they could change their display name. Aug 4, 2021 at 21:47
  • 13
    @RoddyoftheFrozenPeas Your browser should tell you where a link is pointing to when you hover over it, without click it. It's not "a random link", it's just a normal hyperlink. Which are very much encouraged on the web.
    – Bergi
    Aug 4, 2021 at 21:48
  • 5
    @RoddyoftheFrozenPeas links are supplementary. Visit them if you need to learn more information. Don't visit them if you're not interested. If all the information in a post is a link and nothing else, it might be eligible for a link-only deletion. If you prefer that all the information from the link be put in the post, then I suggest you help me update some of my answers that refer to the ES specs. Feel free to copy and paste the entire spec in my answers when they refer to it, if you think that's the appropriate thing to do.
    – VLAZ
    Aug 5, 2021 at 6:09
  • @Cave Keep it! If you include a link to their user profile, that'll still work cause it's primarily identified by ID, not name. For example, I'm /users/4518341/wjandrea, but /users/4518341/john-doe still refers to me by my ID, 4518341.
    – wjandrea
    Aug 5, 2021 at 21:06
  • @wjandrea oh sure, but then the text should be something like by this user with this user linked to the user profile as you mentioned Aug 5, 2021 at 21:30
  • @CaveJohnson as I stated in the note under the quotes; you can phrase the sentence however you like. The only “condition” is that if you are referring to a user then link to their profile. The text itself could be their username or ‘this user’ or ‘this person’ etc. Even if you refer to them as <username> and if the username later changes, at the very least, editors in the future can fix it with the latest username (or some generic phrase) later on Aug 5, 2021 at 21:38
2

Prefer to just not refer to comments or other answers or users, full stop.


The Q&A model of Stack Overflow is not really suitable to rely on temporary or subjective information. Comments will be deleted, and users* are not authoritative. Other answers may hold valuable content, but referring to them in a conversational or commentary style is not helpful.

If your answer has such references because they motivated you to write the answer, because they gave you a hint in the right direction, because you found them inferior or lacking, or anything else not relevant for the on-topic content of your answer, just remove these references.

If your answer relies on content from comments or answers, quote it at least in parts. Quoting involves giving proper attribution/source and also preserves/presents the relevant information. By default, content on Stack Overflow is subject to a license that requires proper attribution.

As noted in the Stack Exchange Terms of Service and in the footer of every page, all publicly accessible user contributions are licensed under Creative Commons Attribution-ShareAlike license […]
--- Stack Overflow Help center , What is the license for the content I post?

When other answers provide useful background information, just treat them like any other auxiliary resource: add a link to them. Explicitly calling out that they are answers on Stack Overflow is usually not helpful; prefer to have the link text summarise the topic, message or key points supported by the link target.


* That is, as users of Stack Overflow. If the person themselves is an authority, they are so regardless of their status as a Stack Overflow user.

4
  • 5
    Eh, I would rather just provide linking/proper attribution without quoting, because quoting takes up unnecessary space. You know how much vertical space a Stack Snippet takes up? No thank you. Quoting is useful for when the content you are referring to is not available or is not on the same page... when referencing other answers on the same Q, they are available on the very same page.
    – TylerH
    Aug 4, 2021 at 13:51
  • 3
    @TylerH The point is that if the content is relevant for an answer, it should be in the answer itself. On the one hand that is to avoid having to jump somewhere else and back again; whether the target is on the same page or not doesn't matter for that. On the other hand, and more importantly, it is to ensure the relevant content is available as expected, no matter if the target is moved, edited or deleted. Aug 4, 2021 at 14:03
  • 2
    'relevant' is different from 'necessary'. The question is relevant to the answer, but should we quote the entire question in our answers?
    – TylerH
    Aug 4, 2021 at 14:04
  • 2
    @TylerH If your answer is specifically referring to some part of the question, by all means do quote them instead of talking about lines 12 to 47, code block 2. That's why this answer refers to quoting parts instead of necessarily the entire thing. Aug 4, 2021 at 14:07

You must log in to answer this question.

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