-19

I have a question about my Stack Overflow post: How can I take a string in an integer input field?

The post asks about data type conversion. However, when I added an answer, I got a negative mark for that.

What is the better approach to handling ambiguous questions?

5
  • 12
    If it's unclear then flag as unclear. If it's about string -> integer conversion, then we must have a duplicate or probably four dozen. Find one and flag as a duplicate. If you do want to answer and it's a distinct issue not covered at least a hundred times, then at least add some explanation and references, not post essentially just code.
    – VLAZ
    Commented Feb 22, 2023 at 21:38
  • 7
    First of all if If the question is unclear then your answer is only you guessing. Secondly SO is for high quality questions and answers. By answering questions that do not meet this expectation, then you personally are actively making SO a worse place and downvotes on your answer are very appropriate.
    – JK.
    Commented Feb 22, 2023 at 21:53
  • 6
    Side note: the quality of a post like yours "try this" code-only answer is generally considered "very low" irrespective of the quality of the question - meta.stackoverflow.com/questions/256359/…. You may want to start with fixing that part. Commented Feb 22, 2023 at 22:06
  • 2
    Please read How to Answer. Commented Feb 22, 2023 at 23:45

1 Answer 1

17

If you're not reasonably confident about what the OP is asking, it's best to not answer the question.

The biggest reason is what you're being shown now - if you don't know what is being asked, you don't have a solid way of determining that your answer is correct or suitable, and you're left guessing and engaging in a conversation, which isn't really what we want.

So if you don't know what the OP is asking? Just don't answer it! When you get 50 rep you could comment and ask for clarifications.

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