I was wondering if I felt someone had an XY problem (they have problem X but they go about it with Y and ask about Y rather than X), would it be appropriate to post an answer talking about a different way of going about a problem or would you comment first to clarify with the author of the question?
I've seen mixed experiences where someone was doing a problem one way, people suggested different solutions and they get downvoted because the author wanted it in that specific way.
Thoughts on this? Wish I could find the question I answered. But I'm sure this has come up more than once. Thank you! Just trying to get more perspective.