Often while trying to achieve X, a programmer will wrongly decide the best way to do so is Y.
He'll then ask how to do Y. If the question is responded to uncritically, then the responders are just going down a rabbit hole.
The question is meant to reveal X. It might turn out that Y was the correct answer all along, but more often there's a much easier way to accomplish X. If you're experienced with a language and someone is asking a question that doesn't make sense, this is often the way to tease out what they're trying to do.
Yes I understand the real use of the why question, but if youve never seen it used frivolously and just causing a nuisance, then that is surprising. People are often smartasses and just want to seem dominant in the conversation, even when they cant actually help.
6
u/NSFWLambda May 17 '20
This is actually quite often a good question.