Did you reflect on the case that actually
you might be the smug one in this scenario, assuming that every person who asks a question doesn’t know what they are talking about, and you know better than them?
I have experienced this many times, and it’s extremely frustrating, when people ask for the context, and I answer something to the effect of:
> the context is quite hard to explain but I assure you I thought through this question and this is precisely what I need to know
And people will still insist that you don’t know what you are talking about and this must be an XY problem.
Even in the case that someone might be wondering down the wrong path, it’s more valuable for the community to let them make their own mistakes and learn from them. That’s how we become experts, not from blindly trusting the “authority” of people who spend a lot of time earning karma on Stack Overflow.
I think it’s good to answer a question in the form: “this seems like a strange question because X, but here is the answer”. It’s also fine to ask for context.
But it’s quite arrogant to harass someone into providing context until you are satisfied they are solving a problem in a way you deem worthy. If you don’t like the question you’re free to not engage with it.