4 ms·
The issue is that sometimes poeple just want 'X by Y'. To get a question answered, you shouldn't have to list every constraint and design descision that led you
by axblount 3y ago
The issue is that sometimes poeple just want 'X by Y'. To get a question answered, you shouldn't have to list every constraint and design descision that led you to that point.
Comes up all the time when people ask how to do things in bash/sh. I know there are better tools for the job, but this is the one I have.
- Eisenstein 3y agoSince I apparently did a terrible job explaining it (the link does a much better one) -- it is when someone has a problem that they are trying to solve in a way which will not solve their problem adequately or at all -- it is not when they are using the perceived wrong tool for the job.
- lelanthran 3y agoAnd what all the replies are telling you is that the most XY problems are misdiagnosis. Explaining what the XY problem is to people who are telling you about it's high false positive identification is, itself, an XY misdiagnosis. Your reply is an example of what people are complaining about - you are addressing the issue you wished was asked, not addressing the issue you were presented with.
- xyproto 3y agoSometimes people ask questions like "how do I shoot myself in the foot and still have a working foot", though. Questions are not always reasonable. A question is not always "pure" either, but can embed incorrect assumptions.
- yarekt 3y agoI do see both of your points of view. There are some good answers on SO that capture both. They first explain why it’s infeasible, talk about a better approach, then lastly give pointers on how to achieve what is asked regardless using their best reasoning. Think it just depends on the quality
- lelanthran 3y ago> Sometimes people ask questions like "how do I shoot myself in the foot and still have a working foot", though. Questions are not always reasonable. A question is not always "pure" either, but can embed incorrect assumption But those are correctly diagnosed XY problems. No one is complaining about those. My parent was told the issue is too many incorrectly identified XY problems, and responded with an explanation of what the XY problem is. That is the example of a misdiagnosed XY problem, which was kinda my point. This sort of behaviour makes the actual experts leave the site in droves. If, when answering a question, one where to discard the answer the minute they write "Why would you want to do this?", you'd get much fewer incorrectly diagnosed XY problems. As I said in a different thread, ChatGPT sometimes does this as well, but at least with ChatGPT, when it is answering a question that was never asked, it doesn't also act like a condescending jackass. There are no "Why would you want to do this?" type of questions.
- IIsi50MHz 3y agoAsking why does not have to be condescending. I agree that some responses can read that way, or seem in some other way hostile. In text, or with any reasonable spoken tone, I would not assume that a person asking me why is condescending. But on second consideration, I suppose you would not, either, and I suppose you are specific'ly talking about responses which, each taken as a whole, are easily interpreted as some form of hostile.
- Eisenstein 3y ago> And what all the replies are telling you is that the most XY problems are misdiagnosis. I responded to the person above me when there were literally two other comments in this thread. > Your reply is an example of what people are complaining about Defining something is not an example of an XY problem. > - you are addressing the issue you wished was asked, not addressing the issue you were presented with. As I am not much of a programmer but work on electronics and computer hardware I deal with different types of people than would be on SO, so I am not addressing anything but my own experiences.
- techdragon 3y agoOh god that just reminded me how often people ignore the question asking for posix shell or “/bin/sh” or other specific shell scripting language… and processed to answer the question using bash, zsh, Perl, python, or even the slightly less wrong (because it is kinda weird to be shell scripting without a moderately normal unix environment) of using a bunch of Unix binary programs to do the requested job without actually solving the core problem of the question, because the tools made it easier… And then to ice the cake you find the question because your question has been marked as a duplicate of the older question where they answered using unix binary tools… and you specifically asked about doing something in “pure shell script” or something similar to that phrase. Stack overflow is fundamentally a system design that breaks down at scale due to misalignment of incentives that are necessary for it to work well at smaller scales (as can be seen in the successful operation of various smaller Stack Exchange sites for various topics such as Law, Aviation, Physics, etc)
- pasc1878 3y agoThe bash not sh issue is due to ignorance on the part of the answerers not an XY problem. Also shell can"t do everything - you are in a POSIX environment so use POSIX tools. The Unix environment is an environment of putting together many small tools and not just using one so any shell script can call POSIX tools as a minimum. So just making a complex shell script rather than using the tools does need to explain why. I must admit that I don"t buy in to that philosophy and like using one tool so for scripting I would do all in python, so I would not be answering that question. Many Linux users think that their way is the only and that means bash as the shell and many others like GNU coreutils, gcc etc. I am an MacOS user and my professional career includes several non Linux Unixes so I know bash is not the only shell - try csh for fun - which is partly why I use python or previously perl as they are the same on all machines
- pwdisswordfishc 3y ago> I know there are better tools for the job, but this is the one I have. You may know, but someone else asking the exact same question may not. So sorry then, but listing every constraint and design descision it is.
- lelanthran 3y ago> So sorry then, but listing every constraint and design descision it is. You don't need to do that, a simple "I know what the XY problem is, and this isn't it" prefixed to every question you ask should be enough to stop the race to tell you all about the XY problem. I mean, at this point it's clear that more people know about the XY problem than people ho don't.
- usrbinbash 3y ago> you shouldn't have to list every constraint and design descision that led you to that point True, but that logic goes both ways: Unless told otherwise, whoever reads the question, isn't required to assume that there is a constraint. If I get asked how to water plants with a sieve, without getting told why getting a watering can is impossible, "You don't, use a watering can", is a perfectly acceptable answer. Especially when the question is aked in a question archive, rather than a help-forum. If specific constraints apply to a question, then they should be a part of the question.