• Shopping Cart Shopping Cart
    0Shopping Cart
London App Developer
  • Courses
  • Consulting
  • Tutorials
  • About
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Stackoverflow logo on an orange polka-dot background
Career advice, Getting Help, Productivity, Stack Overflow, Tutorials

How to ask questions on Stack Overflow (and get answers)

A lot of people ask me questions when something isn’t working.

While I’m more than happy to help where I can, the questions I tend to get don’t outline enough information for me to be able to answer them. But more importantly, I might not be the best-suited developer to help.

Which is why every programmer should learn how to ask questions properly on Stack Overflow — to get the answers that they’re looking for.

I’m writing this guide to show you how to pose your questions to thousands of developers instead of just one (me).

How-to-ask-questions-on-Stack-Overflow-FB

How-to-ask-questions-on-stack-overflow-PINT

 

 

In my opinion, the number #1 best resource for learning how to resolve your issue the fastest is Stack Overflow.

Stack Overflow is an online Q&A platform that rewards users for answering questions by giving them points. It has a powerful voting feature which is used to quickly filter bad questions out and get the good ones answered fast.

Whenever I’m having difficulty with something, I’ll submit a Stack Overflow question and typically get the response I need within an hour (depending on the time of day and the popularity of the technology). Needless to say — it’s a very effective and powerful resource for developers, no matter what your skill level.

Here is my 3-step formula to resolving any issues I encounter when coding:

Step 1 – Read the Docs

Sounds cliché, but unless you’ve put in the effort to read the documentation, few will be willing to help you out. When you get stuck your first port of call should be the official documentation of the technology you are using.

Most modern languages and frameworks will have a very detailed and searchable online documentation (if not, perhaps consider an alternative).

Step 2 – Google Search

If you’ve read the relevant documentation and still can’t figure it out, the next thing to do is run your issue through Google.

Google indexes all the forum posts and Stack Overflow questions and answers, so there is a good chance that your question has already been asked and answered somewhere else.

When searching Google, use keywords instead of phrases. Avoid typing things like “not working” or “is broken” as this will not return good results. Start the search with the technology you are using, then include snippets of any error messages or outputs you are getting.

Step 3 – Ask on Stack Overflow

If you have read the documentation, done a Google search and you still haven’t found the answer, it’s time to ask your question on Stack Overflow.

Register/Login

Before you can ask a question, you need to have an account.

You can sign up here.

Having a complete and nice looking profile will improve your chances of getting your question answered.

Here are some tips that will help your account look professional:

●      Add a profile picture
●      Use your real name
●      Add some tags
●      Add some details to your profile

Here is what mine looks like:

stack overflow profile pic

And here is what my profile looks like to the public.

Once that’s done, it’s time to create the question.

The goal is to ask a specific question that encourages a specific answer. Generic questions like “What is the best language” or “What JavaScript framework should I use?” are too vague and will likely get down-voted by the community.

Choosing a Title

The first step is to choose a title. There is a character limit of 150; so short and sweet is what we want. Include the names of the technologies you are using to capture the eye of the experts in those fields.

Here are some examples of my questions:

●      Django creating a custom model field

●      Upgrading from Django 1.6 (with south) to 1.8 doesn’t modify ‘last_login’ on the user table

●      Django Rest Framework PrimaryKeyRelatedField clearing if not set

As you can see, each one specifies the technology I am using with a hint to the topic.

Writing Your Question

The next step is to write the question. When writing your question, make sure to follow these basic rules:

●      Use correct spelling and grammar
●      Use code snippets and quote blocks appropriately
●      Use the Stack Overflow image upload feature to insert screen shots

It’s best to break it down into the following sections:


Describe what you are trying to achieve

Begin your question by describing the overall result you are trying to achieve. Do this because someone may suggest a better way to achieve your result, completely bypassing the issue you are having. This has happened to me a number of times.

For example, in one of my questions I start by writing:

stack overflow title


Explain what you have done so far

After describing what you want to achieve, explain what you have tried so far. This should include any relevant code snippets.

If you have it, you may also link to your project’s code on GitHub (or other Git service). However, don’t do this as an alternative to including snippets of the code in the question. Remember that you are asking people to help you for free, so don’t expect them to spend hours looking through your code trying to figure it out.

This is also where you can link to any documentation you have been following.

Here’s an example where I have explained what I tried so far:

stack overflow code examples


Describe the output you are getting

Next you want to describe what is happening. Make sure you include any error messages you are seeing.


Ask a very specific question

Always end by asking a very specific question that you want answered. This should be no longer than one sentence. Here is the example from my post:

stack overflow question

Choose Appropriate Tags

Tags are important because it’s how Stack Overflow will ensure the correct developers see your question. You can choose up to 5 tags. I recommend adding as many as you can.

Editing

One of my favourite features of Stack Overflow is that you can edit your question after posting. This means that you can constantly refine and improve it based on the feedback you get in the comments.

After posting your question I would suggest giving it another proof read to see if there is any way you can improve upon it.

Before long you should have some helpful developers offering their advice to solve the problem.

That concludes my guide for asking questions on Stack Overflow.

Thanks for Reading!

Cheers
Mark

Tags: Advice, getting help, productivity, Stack Overflow
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://i0.wp.com/londonappdeveloper.com/wp-content/uploads/2016/08/How-to-ask-questions-on-Stack-Overflow-and-get-answers.png?fit=277%2C223&ssl=1 223 277 Brooke Rutherford https://londonappdeveloper.com/wp-content/uploads/2018/12/lon_website_logo-300x110.png Brooke Rutherford2016-08-29 20:42:362021-04-15 20:16:49How to ask questions on Stack Overflow (and get answers)
You might also like
Cartoon of Big Ben against a pink background How to Get a Software Developer Job in London
Coffee cup icon 10 Productivity Hacks for Developers
1 reply
  1. Ricky P
    Ricky P says:
    March 16, 2018 at 5:25 pm

    Good Article I like the reference of different job boards.

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pages

  • About
  • Consulting
  • Home
  • Tutorials

Categories

  • AI
  • Android
  • Android Studio
  • Angular
  • Aptana Studio
  • AWS
  • Bootstrap
  • Career advice
  • Celery
  • Databases
  • Deployment
  • DevOps
  • Django
  • Django REST Framework
  • Docker
  • Eclipse
  • Getting Help
  • Git
  • Git Bash
  • Git Flow
  • GitHub Actions
  • Google App Engine
  • IDE
  • Ionic Framework
  • iOS
  • JavaScript
  • Job Search
  • Links
  • Linux
  • Mac OS X
  • macOS
  • Node.JS
  • OpenAI
  • PGAdmin
  • Postgres
  • Productivity
  • Python
  • React
  • Salt Stack
  • Stack Overflow
  • Tools
  • Travis-CI
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Vagrant
  • VSCode
  • WebSockets
  • Windows 10
  • WordPress

London App Developer Ltd,

71-75 Shelton Street, Covent Garden, London, United Kingdom, WC2H 9JQ

Company registration number: 09718346

© London App Developer - London App Developer Ltd, Company Registration Number: 09718346, VAT: GB224061842
  • Link to X
  • Link to Youtube
  • Link to Facebook
  • Link to Reddit
Link to: How to Get a Software Developer Job in London Link to: How to Get a Software Developer Job in London How to Get a Software Developer Job in LondonCartoon of Big Ben against a pink background Link to: 10 Productivity Hacks for Developers Link to: 10 Productivity Hacks for Developers Coffee cup icon10 Productivity Hacks for Developers
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OKLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Privacy Policy
Accept settingsHide notification only