The XY Problem

yearning

The XY problem is where you want to do X, and you think Y is the best way of doing so. But instead of asking about X, you ask about Y, and hours or days later you realize you lost sight of the actual problem.

I see this constantly on programming and other technical forums.