How to Ask Questions

1. Don't Ask to Ask a Question, Just Ask

❌ Bad: “Does someone know React?”

✅ Good: “How can I apply a class in React on the element the user pressed?”

Don't be afraid to ask because people who help do so because they want to.

2. Describe Your Problem

❌ Bad: “Does someone know why git push doesn't work? (without context)”

✅ Good: “When I try doing git push here is the error message I get that I'm unable to resolve.”

Don't be vague. When asking for help answer “What isn't working?” and “What is the expected result?”. Describe the problem to the best of your ability.

3. Keep it Simple

❌ Bad: “Why doesn't this work?”

✅ Good: Explain the problem you're facing and how you expect it to work alongside a recording, or reproduction of the problem.

Avoid mental gymnastics for everyone involved. The clearer you present your problem the easier it is for someone to help you.

4. Read Error Messages

❌ Bad: Panicking because of error messages.

✅ Good: Learn to love error messages because they give you helpful information instead of failing silently.

Error message

This isn't a React specific issue but JavaScript because if you looked up map is not a function you would learn the error is caused by items not being an array.

5. Read Documentation

Read and try to understand the documentation alongside watching a tutorial, so you catch any breaking changes and level up as a developer at the same time.