r/AskProgramming • u/DudeSlude95 • Sep 12 '21
Other Please take the time to learn how to ask a question
A thing you will have to do a lot in your journey as a developer is asking questions: please understand that it's your responsibility to make it as easy as possible for people to help you.
This holds true in general, as well as in this subreddit.
The person on the other side of the screen has no idea of the context of what you are trying to do, your goal, your constraints, your specification: you have to be clear about all of those when asking a question
I see questions that are borderline like:
"why doesn't my code work?" (copypaste of the code)
So here's a few things you should ask yourself before you ask for help
Do you understand what the error is? Because if you don't understand it, you can't communicate it. You have to have a clear idea of what the expected behavior is, what the actual behavior is, and communicate both
Did you try googling the error before asking? A lot of questions I answered on this sub were just copy pasting from the first result of stack overflow
Is all of the code you're posting necessary for the comprehension of the problem? If not, it's probably a good idea to strip away some parts of the code, and only leave what is essential
Did you try solving the issue for at least 10 minutes on your own before asking?
Is the form in which the question is formulated essential and direct? Is the code properly formatted? Maybe you should consider pasting a link to a codesandbox / jsFiddle instead?
By reading your question, would a stranger be able to have a good idea of what I was expecting to happen, and what is happening instead?
Most problems can have plenty of possible solutions. In the body of your question, please provide examples of ways you've already tried solving the issue
As for the rest, just use common sense
Thanks for coming to my ted talk
12
Sep 12 '21
I will be open, I had a tech lead come to me six months ago and he was very honest in his assessment. He said I asked long winded and convoluted question, and somehow still missed important details.
I worked on tightening up my questions, and one amazing benefit was it really helped me think through the problem. More and more often, thinking of how to state my problem effectively actually would help me come up with a solution. Great advice.
8
5
5
u/Emerald-Hedgehog Sep 12 '21 edited Sep 12 '21
Most people learn this when they try to answer a convoluted question. Suddenly it clicks and it's like "Oh, wait, that's why people are so 'mean' on Stackoverflow?"*.
*Most SO people are actually quite friendly, but I do think they get a bit jaded after answering duplicates/poorly worded questions after a while. I've started to answer some stuff on SO, and man, there's a plethora of poorly written questions (not enough or way too much information and not clearly stating the problem / or goal that can make you go "Dude wtf, you dumb, I'm not here to debug your question before I debug your code ok?")
And of course, there are some elitist-know-it-all-everything-has-to-be-perfect-asshats out there.
2
u/CodeLobe Sep 12 '21
1
u/Emerald-Hedgehog Sep 12 '21
"How To Ask Questions The Smart Way" is also such a bad title. Just by scanning over the text, there's a lot of "smart vs dumb" and that's really, really, really not what this is about.
It's much more about empathy/theory of mind in some way.
In other words: If I can ask a technical question in a way my mother could understand it (kinda), that's a good question. You gotta think less about yourself when asking, but more about "is the person that is going to read my question getting all needed information to adequately judge the context and information given?". Imagine your question like a presentation - it's for the audience. The feedback (answer) is for you, but not what you present your audience with.
And that basically sums up the approach to ask "smart questions". That's the 80% of what will make or break a question. And then it's about details mostly.
6
u/1NSAN3CL0WN Sep 12 '21
Holy 💩.
I made a similar argument in my team this week. Asking people that come for help to at least come up with a theory why what they did didn’t work, or to give the most details they can.
I also got reported to my manager for number 4 of the list, when I asked a “mid level dev” what he tried to fix the problem. (And the response was nothing, so I sarcastically send him a google search of his problem)
6
Sep 12 '21
[removed] — view removed comment
1
u/1NSAN3CL0WN Sep 12 '21
I do fully agree with you on your comment.
I am generally a helpful person, I usually get all the new people in the team up to speed and ensure they can do their daily work. in my context, a person who is in the "mid level dev" would at least do 1 thing to show some sort of effort ( even if it was a 1 minute google search that hey didn't understand ). I was spoon feeding help for a few days (newish person to the team ±3 months, helping them get up to speed). Though I cannot keep literally doing a fellow workers work for him. Thus I started asking questions and gave a LMGTFY.
Thus ending up in the person reporting me.
After a month of the dev refusing to ask me questions, the team had a healthy discussion surrounding this very topic. The Manager also voiced his opinion that when you are asking questions, do come with evidence that you at least tried to attempt to understand your problem.
0
u/cyrusol Sep 12 '21
Any somewhat decent manager will know that a "I tried nothing. Now help me." attitude is more harmful to a team than a LMGTFY response.
3
u/calsosta Sep 12 '21
This is fair, but also more senior people have to do better about being welcoming to communities.
1
0
-1
u/theInfiniteHammer Sep 13 '21
>Did you try googling the error before asking? A lot of questions I
answered on this sub were just copy pasting from the first result of
stack overflow
Please don't do that. I cannot begin to tell you the number of times I've asked a question, and some snob is like "You clearly didn't even google it! Here's the answer" and they show me a link to an answer to a SIMILAR question which still isn't helpful.
29
u/YMK1234 Sep 12 '21
I know this is not a question, but it is a very valid point. A lot of people write very bad questions on this sub and elsewhere.
Quick question in the community: should we make a sticky "[Meta] how to ask good questions"? Gonna use that sticky feature for something 😅