Problem Solving and Getting Help
Even the most experienced developers have to ask for help, so you should never hesitate to ask for guidance! However, there are a few guidelines to follow when asking for help. These steps can help improve the quality of your questions and the efficiency of the help you receive.
Before asking for help
Before asking a question, you should troubleshoot your problem to the best of your ability.
- Think about what should happen. What's the expected result?
- Is there an error message? What does the error mean? Does the message point you to a particular line of code or place in a file? Focus on one error at a time. If there are several errors, focus on the first one first, and don’t worry about the others yet.
- Understand your code to the best of your ability. Go through line-by-line and figure out what each line does. Get out paper and pencil and take notes. Draw pictures. Take your time.
- What concept/topic is the lab/assignment focused on, i.e., what are you practicing? Is there a demo or sample code? Does that demo or sample code work in your environment?
- Search Slack. Has anyone else posted a similar problem/question and solved it?
- Narrow down the problem to a file and a line of code. Use System.out.println statements to help narrow this down.
- Google.
- Take a break. Sometimes a stepping away for a few minutes will provide you with new insight.
Asking for help
When the above have been exhausted, it may be time to ask for help! Based on your trouble-shooting above:
- Explain in detail what the problem is.
- Explain what should happen. What is happening instead?
- Explain what you have tried so far.
- Explain what you think the problem might be.
- When posting a question to a public channel in Slack do not paste actual code.