PDF download Download Article PDF download Download Article

Stack Overflow is a Q&A website where you can ask questions on a wide range of programming topics and get feedback from other users. [1] Stack Overflow also features a voting system that allows users to help select the best questions or answers for particular problems. [2] [3] But, like with any online community, knowing how to ask can help you get a meaningful answer faster than you otherwise might.

Part 1
Part 1 of 3:

Before You Ask

PDF download Download Article
  1. This can usually be accomplished with a simple online search of the problem you are having. If your question is a duplicate or has already been answered, it may be closed by moderators. Some ways of refining your search are as follows:
    • To search a tag and a topic, type: [tag] topic
    • To search a specific phrase, surround it with quotes: "phrase"
    • To exclude a tag, phrase, or topic, preface these with a minus (-) sign
      For tags : [tagA] -[tagB] (searches tagA while limiting tagB)
      For phrases : topic -"phrase" (searches the topic while limiting a specific phrase)
      For topics : topicA -topicB (searches topicA while limiting topicB) [4]
  2. A clear and concise question will help users grasp your problem and answer it more quickly. Be as specific as possible, as this will help users better understand what your problem is and how to advise you.
    • You can clarify your thoughts by jotting down a short draft before posting.
    Advertisement
  3. Your title will serve to draw attention to your question, and a clear title that summarizes your problem generally will help other users know whether they are suited to offer you help.
    • A general title like, "Error in Code" is incredibly vague. Something like "foo exception in bar due to baz" allows users to understand your problem before even reading the details.
    • If you are struggling with creating a good title for your problem, you may want to save writing the title for last.
  4. Your question should start with a brief summary of your problem that expands upon your title/topic. Try to explain the way in which you came upon the problem and any limitations that have made it difficult for you to solve on your own.
  5. Including too much information can get you into trouble or make it difficult for other users to parse where exactly your problem is. This goes especially for code; copying your entire program into your post is rarely helpful. [5]
  6. To post a question on Stack Overflow, you will need to log in with your Google account, Facebook profile, or your Stack Overflow account. [6] If you need to make an account, visit stackoverflow.com and click the "sign up" link found on the top status bar of the page. Then, follow the prompts to create your account and select "log in," which can be found next to the "sign up" link. [7]
  7. Advertisement
Part 2
Part 2 of 3:

Asking Your Question

PDF download Download Article
  1. Navigate to the Stack Overflow homepage in your browser at stackoverflow.com. In the upper right hand corner of the page, you should see the Ask Question button, which you should click to continue.
  2. Then check the box box indicating you have read and understand the disclaimer and click "Proceed." Now you're ready to ask your question!
  3. This is where your problem description and title come in handy. Fill in the information and take a moment to double check spelling and grammar. That last thing you want is someone hassling your usage instead of answering your question. Then click on "Post your question."
  4. In the tags field, when you begin typing, the Stack Overflow system will automatically suggest likely tags to help you with this process. Be sure you read the descriptions for your tags. An incorrect tag can seriously limit potential responses. [8]
    • Three important tags to include with relation to your topic are: language, library, and API.
  5. Advertisement
Part 3
Part 3 of 3:

Following up

PDF download Download Article
  1. If you have asked a few questions on Stack Overflow, or if you've forgotten the exact title of a question you've recently asked, you can do a user search. To do this type into the search field:
    • user:username (returns only results for the username provided)
    • user:username topic (returns only results for the username provided with the associated topic) [9]
  2. Often these will be constructive, and by paying attention, you can learn how to improve your Stack Overflow question asking skills for next time.
    • Leave your browser open to your post, and respond to questions by editing your post to provide more, or more precise, information. [10]
  3. To accept an answer that you consider satisfactory, you can click the green tick-mark under the score of the answer. This will indicate that the question is finished, and will give the user who answered points as a reward for contributing. [11] [12]
  4. Sometimes, as the question you have posted is being answered, you may realize that a more apt title could have been used or a different description would have fit it better. In this case, edit your title so other users can find and use your Q&A more easily.
    • For example, you might change "Strange problem in foo" to "bar error in foo because baz."
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How can an image be moved inside of the layout?
    Community Answer
    Click the picture and drag it into the layout and the picture will load there.
  • Question
    What are some good coding languages to learn as a kid?
    Community Answer
    Start with Python, learn the basics and then try to make a game of your own on Pygame. You learn the best when you make something you enjoyed making. After that, if you intend to go for mobile app development, switch to Java and Kotlin but if PC apps are your bullseye, C++ and C# is your best bet.
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 188,940 times.

      Is this article up to date?

      Advertisement