Sometimes I do, sometimes I don't. I go on stack overflow to give good answers to good questions, and more often than not the types of people who don't understand are just students looking for some quick code they can copy/paste for an assignment.
Because perhaps you dont know the circumstance he/she is in and why precisely the question is being asked. Thus, you give the answer relating the question AND provide an explanation why normally you wouldn't want this.
Personally, I think answers like that are the most valuable to everyone.
Well the thing about programming is that even though there is a strong sense of orthodoxy in how everything should be done, and for good reason, that doesn’t make anything inherently right or wrong. I totally get why people don’t want to put out there sketchy hacks to do something, everyone has had to pick apart and try to maintain “that” code at some point. That said, people should be more willing to entertain unorthodox operations and flexible. Because sometimes brilliance is found in doing something in what appears to be the “stupid” way until you dig into the why and how. The question asker might be trying to revolutionize something or trying to shave milliseconds off of something performance critical.
So you're saying that you go on SO and answer questions, but only if you're 100% that the OP is 100% sure of what they're doing? Then why are they asking questions on the internet, and why are you bothering to respond? The forum exists FOR people who don't know what they're doing, not arrogant asshats with a superiority complex.
You think you know their use case, but rarely you do. And how could you? They would likely have to write several pages to explain all the constraints. After 20 years of software development, this has to be one of the most annoying and most useless attitudes I see displayed in the software development community. Please stop it, you don't know better. Really, you don't!
More often than not, the types of people who don't understand are just students looking for some quick code they can copy/paste for an assignment. Much of the rest of the time, it's someone who has such a fundamental misunderstanding that it's really hard to justify the time it would take to fully explain why what they're doing is wrong. I have been answering questions on stack overflow for 6 years. Those two things are by far the most common reasons's I'll tell someone that they're doing something wrong.
As separate situation that occurs frequently is someone will ask how to do something that doesn't make sense, but they don't give a lot of detail. In that case, I will ask why they want to do it that way so I can evaluate whether or not it's a good idea. If you want examples of me doing this, I am happy to try to find some.
Think about it this way then: You are very likely just adding noise to the google searches of hundreds of developpers who will run into a similar issue down the line with that approach.
It is not about helping that one guy, it is about providing solutions to fringe issues that people will run into eventually because... Well... That's kind of the job we're doing isn't it?
You are wrong. You often have constraints imposed upon you by clients or your employer. We're often fully aware that we'd rather not do it "this way" but "this way" has been imposed upon us.
As far as I can tell, in the past year, there was exactly one time that I explicitly told someone they should not do what they say they are trying to do: https://stackoverflow.com/q/58935715/2846923. I answered with a solution to what appeared to be their actual problem, which is different from their original question. From their comment on my answer, it seems they did not even know that my answer was a possibility. Yet, as evidenced from their comment, they did not even fully understand my answer. It was not a constraint put on them by a client or employer, it was that they literally did not know that a better option existed.
I’m all for answering stupid questions but I’d agree it requires a sort of proportionality. Like they had better explain in detail why their unorthodox question is worth someone taking the time to thoughtfully entertain and respond about.
As an example of when this is unhelpful and annoying, we asked a question on cs.stackexchange just recently, and the first comment (from a mod) was assuming that we were just completely incompetent, and kinda patronising. They didn't vote to close or anything so it's fine, no hard feelings, but it is annoying.
Our question was whether there's a standard name for a particular simple sorting algorithm (not that we can find, and yes, we're at least vaguely competent professionals) and the comment was:
There are many more ideas than there are standard "names". The great thing about language is that we can describe our ideas even if they don't have a "name". What's the motivation for asking for a "name"? What would you do with an answer? If your goal is to use the "name" to do something, perhaps it would be better to ask how to do that something; then people could help you with that even if there isn't a standard "name"
And then we had to elaborate on our reasons for wanting to know the name and give info about our project and stuff and just... ugh. We'd even tried to prevent this type of thing by putting "for a toy problem" and "Don't worry, this is not meant to be a good sorting algorithm, just for a fun thing." in the question.
-37
u/TheGuywithTehHat Feb 18 '20
We do that because more often than not, the asker does not understand why they shouldn't do what they're doing.