Friday, April 27, 2018

Newbie, Here are some references how to asking programming questions



This article will talking about how to be great at asking programming questions, especially for those who new programming world.

Why I said for those who new in programming language?


Yeah, mostly of them asking their programming problem with bad (sometime worst) questions and no explain clearly about their problem.


For example (bad questions) :
  • I need to create simple chat program, could you provide me the source code? (hahaha hell yeah)
  • Sir I got error in every sign in with Facebook from my application, how to fix it? (with no code attached, seriously? haha)
  • Here my code, when I using this code, the application always crash, I don't know how to fix it. Please help me! (We don't know exactly what the problem, have you debugged it?)
  • How to learn ABC programming?
  • How to learn ABC programming instantly? (hahaha)
  • etc
If you are join in some programming groups / forums, you must be face the question similar like that, right? haha,

How to be great at asking programming questions?


There are some type of good programming questions, as long as the questions is clearly describe about your problem, it will be fine.

For reference, here are some good way how to asking programming questions (copied from stackoverflow) :
  • Bad : C# Math Confution
  • Good : Why does using float instead of int give me different results when all of my inputs are integers?
  • Bad :  [php] session doubt
  • Good : How can I redirect users to different pages based on session data in PHP? (You have to attached to code, if not, your question will be in to bad category questions)
  • Bad : android if else problem (your question not clearly enough)
  • Good : Why does str = "value" evaluate to false when str is set to "value"?
To avoid bad reputation because of your question, try to do some steps that make your questions a little bit clearly.


Explain The Problem


Sometimes people who asking their question with no detail explanation, like : How to create Facebook login in our application?, insane!

You should tried coding first by your selves, then find the error and explain the difficulty, by providing the clear question it will be much people excited to answer your questions. Don't forget to provide the code!

Provide the code snippet


This is the most important thing. You have to provide the codes and explain your problem related to your code snippet.

If you are follow some tutorials, just attached the link where you find the tutorial after that tell people which line of those tutorial that give you an error. But, in some case people need you attached full code of your class.


If people mark you as duplicate questions, what should you do?


Talking about programming, we also talking about abstract problem. Perhaps your questions look similar like others that has been solved and your question marked as "possible duplicated". If it happened to you, don't worry, if you think your questions is different, then tell other what the different of your question by edit your question and provide some descriptions.

Also, you have to tell people that you have tried all answers that similar with your questions. don't forget to provide the link's answers.

But, if your question indeed similar like others, and you never try the others answer, you question will be down voted or maybe closed.

Be interactive with people who answer your question.


This makes you easier to find the most appropriate answer to your question. For example if there any answers and it not what you looking for, you should comment the answer and tell what you really needed.

If you have no idea of the result from the answer that given to you, you have to try it first into your program, whatever the result you still have to tell the owner of the answer, like "I have tried your answer, but it still doesn't work." or "Nice, your code works, thank you".

Actually there are much reference how to be great at asking programming language, this article just a little bit my experience when asking programming questions. Hope this article will guide you how to be great at asking programming questions.

Related Posts


EmoticonEmoticon