As a programmer, there are times that you encounter bugs that are either too difficult to track down or fix.
At times like that, you look for help somewhere. This can be in stackoverflow or developer groups on discord, slack or anywhere else.
How do you phrase your question in order for others to understand the problem and help you resolve it?
This is going to be a general technique in question asking that will give you quality answers or at least get the right people to point you in the right direction.
Elements of a good question
The following are in my opinion what makes a good question
- What are you trying to do
- What is the expected output
- What programming language or tools you are using
- What have you tried
- What errors did you receive if any (with stack trace)
- Minimal code to assist reproduce or debug (Well formatted or via a code snippet site) https://stackoverflow.com/help/minimal-reproducible-example
- Helpful screenshot of UI if it's about a UI issue (eg trying to replicate a certain design)
After writing the question.
Once you are done writing your question, read it through. Correct any grammatical errors.
Make sure that the question has enough details to help anyone else understand the context of the problem.
Conclusion
Happy coding
Please refer to this blog post for a checklist of things to consider when asking a question
https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/
Comments
Post a Comment
Feel free to reach to me if you have any inputs or suggestions