r/programminghelp • • Dec 13 '19

Tips for asking good Questions

People are more likely to respond to you if you follow this guide:

Give a meaningful title. Everyone on this subreddit needs help on a project. Your title should be specific to the problem you're having, such as "Why am I getting an IndexOutOfRangeException in my file reader?"

Explain your code. State what you're trying to achieve and what all the variables mean. If your code is crashing, tell us the name of the error. If you code is giving the wrong output, state the expected output and actual output.

If you don't have any code, perhaps r/learnprogramming is a better place to be.

Copy your code as text. It's difficult to read the code off a screenshot. It's much easier for us to read and navigate plain text. It would also be nice if you format your code by using a Code Block.

Either:

  • Post your entire code. Maybe your error is a logical consequence of a totally different piece of code? You can post large amounts of text to pastebin, which also lets your format your code nicely.

  • Get to the point. Write a new separate piece of code that only does the thing that causes the error (and make sure it reproduces the error).

Don't comment on your own post. If you want to add something to your post, edit the post. On reddit, the comments section keeps getting rearranged according to how many upvotes each comment has. If you press "reply" on a comment, then your reply will always stick to the comment you're replying to, and the person who sent the comment gets notified.

16 Upvotes

0 comments sorted by