Spize Tech

The blog help to build your skill.

Data Structure and algorithm

Questions and Answers

More


The Smarter Way of Asking for Programming Help

As programmers, we all face bugs regularly in our programs. Nevertheless, we must find a way to solve those issues and make our programs run properly. Some people are so good at debugging — they can find bugs and solve issues on their own. But they, too, would have gotten to that level of expertise by having taken baby steps from the beginner level.

I personally like helping people solve their bugs. Lending others a helping hand is fun and emotionally rewarding. It also helps me revise or learn things that I’ve missed or forgotten.
Therefore, I’ve created this small guide to help beginners ask help from fellow programmers in a smarter way.

Before You Ask a Question


 Before you ask for help, make sure you’ve done your part of the research as well. Some people are so lazy — they don’t even think of doing some googling on their end. They simply open up a forum, say Stack Overflow or a Facebook group, and post their question. It can even be simple questions, such as “how do I start programming?” or “how do I install an npm package?”
You can genuinely not understand how to do it, but you must make sure you put up an effort from your end — and then ask for help. Make sure you show the potential audience of your question that you’ve put an effort into finding a solution to your problem and yet failed.
These are some steps you can take before asking your question from others.
  • Search online — the first thing you should do is google
  • Read the documentation — make sure you read the official documentation and forums
  • Ask a skilled friend — if the above two options don’t work, you can ask a skilled friend of yours
If you haven’t been able to find a solution after these three steps, you can go ahead and ask your questions. When you ask your question, display the fact you’ve done these things first.

How to search online

How can two people search on the same platform, yet only one person was able to find a solution to the problem?
This is because of the way both of them phrased their questions.
Make sure you include only the necessary phrases or terms in your search query. Suppose you want to know how to add a local image to your HTML. You can either search “how to add images to my website” or “how to add a local image in HTML.” As you can see, the latter question is better phrased — as it’s more specific but provides enough detail.



How to Ask a Question

Make sure you ask the right question at the right place

  • Post your question to a forum where it’s off topic
  • Post a very elementary question to a forum where advanced technical questions are expected — or vice versa
  • Crosspost to too many different newsgroups
  • Post a personal email to somebody who is neither an acquaintance of yours or personally responsible for solving your problem

Make sure you post clear screenshots/messages of the error

You should always make sure your code is readable. This can be achieved by uploading screenshots of your error/code. You can even upload your code via GitHub gists or code editors like CodePen. This makes sure that people can clearly read and understand your code, without having to turn their heads to be able to see your captured image of the code.
Always make sure to include your error message as a text in your post. This will make it easier for people to do research on.
If you don’t know how to take a screenshot, you can find out more here.

Try websites like Stack Overflow

Make sure you follow the Before You Ask a Question guidelines mentioned above to avoid being downvoted on your question. Being downvoted gives you a bad reputation on Stack Overflow. Posting code/error screenshots in StackOverflow is not recommended at all. Try to post your error as a text.

Write the question as clear as possible and straight to the point

Also, make sure your question is straight to the point. Don’t beat around the bush and waste peoples time.
  • Mention the environment you run on
  • Describe the symptoms of your problem or bug carefully and clearly
  • If at all possible, provide a way to reproduce the problem in a controlled environment
  • Make sure you include the exact text of the error message — ideally, copy and paste it directly out of whatever log, console, or web page contained it
  • If you need help with a piece of code, always provide a code sample. It need not be the exact code, but it shouldn’t be semantically different from your actual code. For instance, hiding particularly sensitive values in your code is fine, but you shouldn’t change or paraphrase things like loop conditions.

What If You Don’t Get an Answer?

If you don’t get an answer to your question, don’t take it personally. Sometimes the members of the asked group may simply not know the answer. No response isn’t the same as being ignored — though, admittedly, it’s hard to spot the difference from the outside.
If you’re still in need of solving your question, you can get paid help. There are also plenty of commercial companies you can contract for help, both large and small. Don’t be dismayed at the idea of having to pay for a bit of help! After all, if your car engine blows a head gasket, chances are you’d take it to a repair shop and pay to get it fixed. Even if the software didn’t cost you anything, you can’t expect that support to always come for free.
Conclusion
Happy coding!

No comments:

Post a Comment