The XY problem is a communication issue where an individual asks for help with their attempted solution (Y) rather than asking for help with their actual problem (X). This can lead to inefficient solutions and unnecessary complexity.
Examples
DevOps: Asking how to automate a manual process that should remain manual for security reasons.
Programming: Asking how to sort an array in a specific way, when the real goal is to find the minimum value.
Gaming: Asking how to beat a difficult level using a specific character, when another character would make it easier.
Ways to Combat
Clarify the End Goal: Always ask yourself what the end goal is to understand the actual problem. If you don't know what to ask, include this in your request for assistance.
Don't Assume: Don't assume that your proposed solution is the best or only way to solve the problem.
Be Open: Be open to alternative solutions that may be more efficient or simpler. While your logic may be sound for other industries, specialties, or fields, that same logic may not hold true with this problem.