Skip to content

Instantly share code, notes, and snippets.

@ericweissman
Last active September 20, 2023 22:52
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save ericweissman/fb0241e226227867b6bc70a4d49227f5 to your computer and use it in GitHub Desktop.
Save ericweissman/fb0241e226227867b6bc70a4d49227f5 to your computer and use it in GitHub Desktop.

How To Ask Questions That Lead to Answers

As you launch into your technical career, you are going to have questions. Tons of them! The challenge for new developers is learning WHEN and HOW to ask questions around technical content!

When You Should Ask a Question

When to ask questions

When learning any new skill, especially a technically challenging skill, it is crucial to give yourself time to explore, tinker, research, etc. before reaching out for help.

One of the most common patterns we see of students who struggle at Turing is asking for help before they've put in the time/effort to begin the process of learning what is confusing them in the first place. This typically involves a student who sees an error message and asks for help immediately. Remember, error messages are your friends! They can provide clues and ideas as to where to make changes to your code.

On the flip side, another common pitfall we see of new students is spending TOO MUCH time struggling on their own before reaching out for help. This could look like spending 20-30 minutes trying different approaches but still encountering the same error message.

So to recap:

  • If you've been working for 20+ minutes and haven't made any progress (same error message, app still broken)... TIME TO REACH OUT FOR HELP
  • If you've been working for 20 minutes and the app still isn't working BUT you are making some progress/seeing new error messages... KEEP WORKING AT IT

Who Should I Reach Out to For Help?

Who to ask question to?

Turing (and most tech companies) use tools like Slack to foster strong, asynchronous communication. In the context of Mod 0/Mod 1, reaching out in your cohort specific channel is a great way to get a lot of visibility on your question. By posting in a public place, you are allowing multiple people - cohortmates, instructors, mentors, etc. - the opportunity to help you!

Feeling apprehensive about asking a questions publicly? Don't be! That's part of the learning process AND it's the fastest way to get feedback on your question(s). Chances are that SEVERAL people have the same questions/problems that you're encountering so it will benefit more than just you to ask!

How to Ask a Questions That Lead to an Answers

How to ask questions

Asking technical questions effectively requires providing the appropriate amount of context to elict strong and speedy responses. Here is a formula for asking questions at Turing and beyond:

  • What are you trying to accomplish?
  • What have you tried so far?
  • What specifically are you stuck on?
  • Provide additional visual context such as inline code examples, code snippets, or screenshots:
    • Use inline code examples for short, single lines of code, such as error messages or warnings
    • Need to show more than one line of code? Use a code block instead - be sure to chose the correct language for your snippet to get proper syntax highlighting + line numbers (in Slack)!
    //This is an example of a code snippet
    var coolPhrase = 'Gooooood morning campers!';
    
    function sayGreeting(phrase) {
      console.log(phrase)
    }
    
    sayGreeting(coolPhrase)
    • When using a screenshot, make sure image is clear and includes clarifying info/captions if necessary

If you are unable to provide the information above, it is usually a sign that you haven't spent enough time working on this problem on your own! Also, the process of writing out such a detailed request for help will often allow you to think of new things to try or experiment with and can often allow you to solve the problem on your own.

Examples of Good and Bad Questions

Bad Example

Screen Shot 2020-12-18 at 11 26 55 AM

Issues with this question:

  • No context is given at to what the actual issue is
  • Unclear what steps they have already tried or what resources they have consulted
  • The way the question is phrased requires someone to ask what the issue is
  • Chances are there is nothing wrong with the Javascript file, but was rather an issue the developer wrote in the code. Providing code block or inline code examples could help identify the issue.

Good Example

Screen Shot 2020-12-18 at 12 02 53 PM

This is a strong question because:

  • Clear explanation of the problem
  • Outlined the steps they have taken to research on their own
  • Can identify specifically where or what they are stuck on
  • Provided relevant error message using inline code
  • Provided relevant code in a larger code block

By providing these examples and context, it allows other developers to try to recreate this problem on their own and find solutions! As often is the case, this specific problem was due to a very minor typo in their function call - this developer didn't spell their function name correctly! Specifically, they called their function using saySomethin(...) when the function name is saySomething()

@tvaroglu
Copy link

Great info here, thank you Eric!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment