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.
180
u/Frptwenty May 17 '20
Why do you think you need to do that?