When we write programs, we often encounter various problems. In China, our friends often go to Zhihu, CSDN, Blog Park, Sifu, Android Bus and other places to ask questions and get answers.

These places are a collection of excellent, shareable domestic resources. One thing that XIAobian is proud of is: When learning during the dubbo, shut by a data error has been can’t find the right solution, will solve the problem conveniently their steps to write, and attach the resources of methods, is the kind of problem did an enhanced version of the summary, hadn’t thought of a few months later, a special fans came to thank me, to help him solve the confusion.

Tech people are so easily satisfied. Get a thank you, happy like a fool. On the way forward, sharing and providing resources to more people is the most joyful and enjoyable thing.

It’s the age of the mobile Internet. Wouldn’t it be better if we could connect to more people, if we could connect not only to our own country, but also to other countries? So how to get the answers you want abroad? Let’s try Stack Overflow, the great q&A platform, you know.

But asking questions is also an art, so check out their summary to help you better ask questions on the platform.

The original address: https://medium.com/better-programming/how-to-ask-a-question-that-gets-answered-on-stack-overflow-45f87f1a2fef

By Nabil Nalakath

Time: 2019.11.12

When someone tells me about a problem they’re having with development, in most cases my immediate response is, “What are you finding on Stack Overflow?”

However, many developers give strange answers, such as: “I don’t know how to use it, I get banned for asking bad questions, people always disapprove of my posts, or send me links on how to ask questions,” etc.

Stack Overflow is one of the most useful and visited sites on the Internet, but it’s also one of the most brutal platforms on the Internet.

If you make a mistake or ask a stupid question, people won’t manage your money, and that’s how the platform has maintained its standards since its inception. So don’t expect anything to come of it.

Instead, we need to get used to it and change the way we ask questions. That’s enough. Let’s take a look at the important things to note when you ask questions.

Points to note when publishing issues

  1. Be specific (don’t post whole questions or broad questions in the title)
  2. Use the correct labels (this is very important to get answers quickly)
  3. Post the relevant part of the code and format it as code using the code tag in the question editor (most people won’t answer if the code isn’t neat)
  4. If you want to explain run-time problems, try Posting screenshots
  5. Publish the correct error log, if any, (especially in case of an application crash)
  6. If part of your output is error-free, and you want to make specific changes to the output, and you can’t seem to figure out how to break the problem into two parts and mention it clearly in the problem:
  • What do you have now
  • Goals you need to achieve
  1. Publish wireframe screenshots if they are uI-related, and if not, try using a simple tool like Paint in an existing UI screenshot to mark up what you want or the changes you want to make
  2. Release the release code if you think it might be relevant to fixing the problem (for example, if the problem only occurs in older versions of PHP or Android, but not in newer versions)

Errors to avoid when publishing

  • Do not publish parts of your code that contain the brand name or company name
  • Crop the screen capture to show only relevant content
  • If the code contains part of something, such as a key or password (such as an E-mail password in your PHP mail program code), always replace the password field with or special characters
  • Don’t publish your own special algorithm or application engine code unless you don’t mind someone else using it or making it open source

Bad questions and good questions

Let’s take a look at the article with 146 votes in favor:

Address: https://stackoverflow.com/questions/3905734/how-to-send-100-000-emails-weekly?source=post_page—–45f87f1a2fef——— ————-

As you can see in this example, published issues are not specific issues. If you want this kind of tutorial type answer, Stack Overflow is not the place to go.

Take this example. In this case, the user is asking to use PHP to send an E-mail to 100,000 users per week. But the question doesn’t show any effort on the user’s part.

So far, there is no mention of what users have tried or any specific errors they have faced. This is a perfect example of not being able to answer questions.

In addition, here are some good sample questions for your reference.

Address: https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array?s ource=post_page—–45f87f1a2fef———————-

Address: https://stackoverflow.com/questions/51096796/how-to-enable-horizontal-scrolling-for-chart-js-in-ionic?source=post_page– —45f87f1a2fef———————-

Address: https://stackoverflow.com/questions/47923524/app-is-crashing-on-some-devices-android-studio-shows-out-of-memory-exceptio n-er?source=post_page—–45f87f1a2fef———————-

As you can see, even if someone doesn’t answer, you still get a yes vote if you ask the question in the proper way

Thank you

Finally, if you get the answer to your query and it meets your requirements, close the question by marking it as an acceptable answer.

This will help the people who post the answers gain credit and encourage them to help more people.

After all, platforms exist only because these altruistic devotees are willing to help you, so that’s the least you can do for them.

At the end

Asking questions is an art, xiaobian often encounter a lot of questions do not understand, do not understand the situation. No matter in the team or in the process of communicating with others, we will more or less meet the situation that we do not understand each other, so it is really difficult for us to do technology, haha.

Of course, if we learn some necessary skills, we can still ask questions just so so. After all, we have so many common languages. Although there are many kinds of problems, there will always be someone who meets your problems and there will always be a way to solve them.

This is a good example of asking questions. Similar techniques can be used to ask questions not only on Stack Overflow, but also on our own platforms and project teams in China, which can greatly save communication costs and achieve higher efficiency.

This article is published by OpenWrite!