the XY problem
expressionIT supportprogramming
Asking for help with your attempted solution (Y) instead of your actual problem (X) - and burning everyone's time on the wrong question.
The support-forum classic: 'how do I extract the last 3 characters of a filename' when the real goal is the extension. The cure is on both sides: askers state the underlying goal; helpers ask 'what are you actually trying to do' before optimizing the wrong path.
The XY problem is asking about your attempted solution rather than your actual problem. You want X, you think Y will get you there, you ask how to do Y, and everyone spends their time on Y while X goes unmentioned and often has a much simpler answer.
The reason it is so common is that it feels like being considerate. Asking a narrow, specific question seems more respectful of the answerer's time than describing a whole situation, and it produces exactly the wrong outcome, because the answerer cannot see that Y is the wrong approach without knowing X.
The fix works from both sides. Asking well means stating the goal first and the attempt second: I am trying to do X, I thought Y might work, here is where Y is failing. Answering well means asking what the person is actually trying to accomplish before solving the stated question, which is why experienced helpers so often reply with what are you trying to do rather than an answer. It is not evasion, it is the fastest route to the useful response.
Also known as: XY problem