-1

I was looking at this question.

I think I've seen that sometimes if you post code in an answer without it being enclosed in three backticks or tabs you get a notice that "It seems you're trying to post unformatted code" or something similar.

Could Stack Overflow do something similar to let users asking questions know of these guidelines before posting the question?

Example:

Hey it looks like you're trying to post a question about Selenium you might want to check What should a 'minimal, reproducible example' include for problems with automating web browsers using Selenium?

Or if the user is asking about an error but doesn't post any code or stacktrace:

Hey it seems you're asking a question about an error in your program but haven included any code or error message [....]

Or if the user is talking about code but there's no code in the question and there's only an image URL:

Hey it seems you're asking a question about your code but you posted an image please make sure you're not posting your code as a screenshot [....]

That kind of thing.

Just like the review question notice users should probably be able to ignore the messages but it would help improve the questions quality.


Also, in the case of the MRE question, why should the link point to the question and not the answer? Some users might miss that if the question is longer than the window's height or has many comments.

10
  • 2
    Regarding the tag warnings, these seem possibly related: Warnings when using certain tag combinations, What determines what tags will get a popup with usage guidance?. Regarding the message concerning the error it seems to be quite more difficult, because it would have to read the whole text and understand that the OP is asking about an error. (Making a program understand text is hard)
    – Lino
    Sep 8 at 8:12
  • 2
    The question form does detect code not in a code fence/block before you post, however, it's not great. It has a few false positives, and a lot of false negatives. If only users read the text around the question wizard while asking or actually looked at the preview before submitting.. /sigh
    – Thom A
    Sep 8 at 8:14
  • 1
    @Lino I'd rather SO had AI for this than for other things, people who ask good questions can ignore this, some of the bad questions will use it and post better questions and the rest will probably ignore. Perhaps this kind of help could be disabled at X reputation score.
    – Daviid
    Sep 8 at 8:19
  • 2
    @Lino Of course it is not difficult, you just throw AI at it and it'll solve anything! (just to be sure: I'm being flippant here). EDIT: well then. Nice ninja.
    – Gimby
    Sep 8 at 8:19
  • 7
    How do you propose SO should detect these situations? The range of these situations seems to go from algorithmically simple to extremely extreme challenge to detect. Sep 8 at 8:40
  • It could go from tag check + keywords on the question all the way to NLP, One would miss a lot of questions the other would catch a lot of false positives.
    – Daviid
    Sep 8 at 9:12
  • 5
    The images of code thing has been brought up several times too. For example, here's my somewhat broader post about it on MSE. (There's no reason to make this complicated; a warning could be just shown whenever there's an image in the post.)
    – Laurel
    Sep 8 at 12:58
  • 6
    Doesn't the question wizard already explain what to do and what content is expected? If someone still fails to provide basic information, then I honestly wonder when SO accepts that some can't be helped and adding more text and more popups and more markers etc. doesn't improve the situation.
    – Tom
    Sep 8 at 14:14
  • 2
    When there is no possibility to post an image, but only a link to an image, that user should also not have the rights to post a link to an image. (saves 80%+ on question from readers with unclear info that needs to be guessed from the including pictures.)
    – Luuk
    Sep 8 at 18:28
  • @Luuk sometimes images actually help in explaining problems that might otherwise not be very clear (For example problems with user interfaces, etc.) Also the URLs might not make it obvious that it is linking to an image. Blocking the popular ones will just take users to other image hosting sites whose links might easily die, causing more issues. Sep 11 at 4:19

0

You must log in to answer this question.

Browse other questions tagged .