3 ms·
You can actually do both. Indeed, the most popular and heavily upvoted answers on SO tend to do just that, in the form of "here's the answer to the question you
by enraged_camel 7y ago
You can actually do both. Indeed, the most popular and heavily upvoted answers on SO tend to do just that, in the form of "here's the answer to the question you asked, and btw, I think this other thing here might be a better way to go about solving your broader problem and maybe avoiding the issue in your question altogether!".
- mark-r 7y agoThere's one answer I had to do that with, simply because the title of the question didn't match the body of the question. I kept getting downvotes from people who came to the question via Google and found my answer didn't match their question.
- non-entity 7y agoThis is what I've tried to do in many cases, because, on one hand, if there are potential ramifications of X (security, etc.) it's good to educate, not just OP, but anyone else who may stumble on the same question. However, I've been on the other side too, and have written knowingly strage, contrived code for the purpose of teaching myself a concept, and it's frustrating when people just say "no".