You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 12I also think this answer is a needed addition to the explanation. I read the above, tried to think about my current problem (whether it is an X or Y question), and when I read on to this comment, I got the "aha" moment of understanding that if I would have posted my question, I would have inquired about the Y not the X. The reiteration of my situation could be a mental block focused on how I am solving the problem rather than clearly stating the problem I want to solve is very helpful.user2421308– user24213082015-02-04 20:17:34 +00:00Commented Feb 4, 2015 at 20:17
- 2I think it is the users' responsibility. I've meet many times the problem, that I wanted to solve the problem X, and everybody suggested Y and Z. But if I had wanted a solution for Y or Z, this is what I had asked. I find this a little bit embarrassing, not only because the answers I get don't belong to my question, but also because I feel myself underestimated. Since that I intentionally miss any details which could mislead my answerers into this bad way.peterh– peterh2015-09-08 02:02:20 +00:00Commented Sep 8, 2015 at 2:02
- This particular answer reminds me of Maslow's HammerKulingar– Kulingar2016-03-18 20:32:59 +00:00Commented Mar 18, 2016 at 20:32
- 13I disagree with the answer. If you do have problem X and state Y as your solution and ask help for Y, what you're doing is establishing your (likely faulty) understanding of the problem. When I want to help someone, I want to know not only their X question, but how it is that they are currently thinking (the Y). Sometimes it's more important to teach how to think than to teach what to think. And the XY problem gives me important clues as to how to approach doing just that.tgm1024--Monica was mistreated– tgm1024--Monica was mistreated2016-12-23 22:58:37 +00:00Commented Dec 23, 2016 at 22:58
- 11Actually, admonishing XY problems is particularly noob-unfriendly. And (to pick, oh, one): stackoverflow has been atrocious in this regard in the last few years. I'm holding out that the other programmer centric SE sites don't so irreparably screwup like they did.tgm1024--Monica was mistreated– tgm1024--Monica was mistreated2016-12-23 23:02:37 +00:00Commented Dec 23, 2016 at 23:02
- 10@tgm1024 I don't quite understand your comments; the XY problem is not when a user includes their thinking process by giving both X and Y in the question, it's when the user doesn't include their thinking process and gives only the Y because especially in that case it's hard to teach them to think.JiK– JiK2017-09-29 23:04:10 +00:00Commented Sep 29, 2017 at 23:04
- 2@JiK, You either identify it as an XY problem or you don't. If you do, then you're well aware of the X. If you don't, then you'd better not assume what the X is, because the presented Y might actually be a validly formed question.tgm1024--Monica was mistreated– tgm1024--Monica was mistreated2017-10-03 12:34:56 +00:00Commented Oct 3, 2017 at 12:34
- 5User doesn't know how to do X, but thinks they can fumble their way to a solution if they can just manage to do Y. Sounds like how all problems are solved to me :P . Taken to its extreme everyone should start their question with "I want to improve my life / the world in some way. I was born in 19..."Att Righ– Att Righ2017-11-29 15:55:41 +00:00Commented Nov 29, 2017 at 15:55
- 7Sometimes that's pretty much right. Many years ago, after my Oracle DBA turned to me (his sysadmin) and said, wearily, "Somehow, somewhere, something has gone wrong" I made myself a t-shirt with that on it. It is in many ways a perfect error report because it doesn't make any assumptions that I then have to rebut: it starts off with his problem and lets me drill down through his observations and his expectations to see where the mismatch with reality might be.MadHatter– MadHatter2018-01-05 09:34:40 +00:00Commented Jan 5, 2018 at 9:34
- 6@tgm1024 It's about avoiding wasting a lot of time for both the asker and the answerers. If you are aware of the caveats of a possibly valid Y then you should include that information in your question. Further asking for X will be avoided. If you don't know the caveats asking for X is probably exactly what you need because a solution for Y will not help you very much. It would be noob unfriendly to not point them towards the correct solution and instead leave them with a poor solution.trixn– trixn2018-03-19 18:15:46 +00:00Commented Mar 19, 2018 at 18:15
- 1@trixn, I'm not sure where we disagree. However, --->If you do have problem X and state Y as your solution and ask help for Y, what you're doing is establishing your (likely faulty) understanding of the problem. When I want to help someone, I want to know not only their X question, but how it is that they are currently thinking (the Y). Sometimes it's more important to teach how to think than to teach what to think. And their appropriate and valuable XY problem gives me important clues as to how to approach doing just that.tgm1024--Monica was mistreated– tgm1024--Monica was mistreated2018-05-03 12:27:10 +00:00Commented May 3, 2018 at 12:27
- 4@tgm1024 That is literally what you already said before. My point was about your statement that admonishing XY problems is particularly noob-unfriendly. Of course it's also a question of how you express your suspicion that a question might be an XY problem. But generally speaking I don't agree that pointing an asker towards that is noob-unfriendly as it might in fact be what he/she actually needs. That's why I usually ask for more information about the use-case. If Y is an easy to answer question I usually answer it anyway with a note that it might not be the desired solution anyways.trixn– trixn2018-05-03 12:45:17 +00:00Commented May 3, 2018 at 12:45
- 3@trixn, of course you can point someone in the right direction, and of course you can guide someone toward a new way of looking at something. However, to start with the notion that the question formation itself is somehow wrong is what I'm at strong odds with. For example, look at the hyperbolic quote in the 71 upvoted answer by Jonathan Benn: "Specific to Q&A, the perniciousness of an XY problem comes from the fact that it is frustrating for everyone involved." That is simply nonsense. The XY question is valuable. It's only frustrating for people who wish it to be so.tgm1024--Monica was mistreated– tgm1024--Monica was mistreated2018-05-07 00:48:49 +00:00Commented May 7, 2018 at 0:48
- 4Great explanation. RE: "and that Y wasn't even a suitable solution for X", I think that sometimes Y can be a solution for X. But it is not a natural or practical solution.B Seven– B Seven2018-07-17 16:59:27 +00:00Commented Jul 17, 2018 at 16:59
- 4Imo this is the one which should be on top.No offense on the top answer,but I first read that and it made me scratch my head and then I came down to see this and the answer got crystal clear to me.Sandun– Sandun2019-01-25 08:52:02 +00:00Commented Jan 25, 2019 at 8:52
| Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. stack-overflow), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you