It makes it much much more easier to answer a question. As an answerer, you can just run the code.
It means that one can directly start answering. Lots of questions miss crucial details the answerers have to pry out of the questioner.
It makes the question much easier to read. If you were attempting to answer questions, would your rather read one one a mile long or one to the point?
It makes sure that the question is actually valuable for stackoverflow. stackoverflow is most effective when people do not need to ask a question in the first place, and find it by googling. A short question is much more likely to apply to other people.
It makes sure the problem is actually in the component you think it is, and not something else. Oftentimes, just by creating an MCVE, I found my own errors. For instance, your latest question asks about a server-side problem, but only includes the client-side code.
Also, you have a tendency to include screenshots for non-styling issues. Again, these are very hard to reproduce, and the error could depend on your settings. It is much better to include a command line that reproduces your problem.
One more thing: if you find the solution to your question, write an answer yourself! Other people will benefit, and your stackoverflow reputation will rise much more quickly, since answers tend to attract more upvotes, and give +10 instead of +5.
If your question contains an MCVE (which means the code should usually be less than 30 lines in JavaScript, maybe 50 at most), you'll find it often gets answered quickly, even when it seems impossible to solve for you.
I'll make you a deal: If you have any question with an MCVE (try it out yourself: can you reproduce the full error just by the information in the question itself?), and it does not get answered on stackoverflow within an hour, drop me a mail (or reddit message) and I'll answer it.
2
u/phihag Feb 07 '18
Having skimmed your stackoverflow questions, I believe I know the reason why you often get no answers:
You do post code (good!), but none of these questions contain a minimal, verifiable, complete example (also known as Short, Self Contained, Correct, Example ).
An MCVE is important for a number of reasons:
It makes it much much more easier to answer a question. As an answerer, you can just run the code.
It means that one can directly start answering. Lots of questions miss crucial details the answerers have to pry out of the questioner.
It makes the question much easier to read. If you were attempting to answer questions, would your rather read one one a mile long or one to the point?
It makes sure that the question is actually valuable for stackoverflow. stackoverflow is most effective when people do not need to ask a question in the first place, and find it by googling. A short question is much more likely to apply to other people.
It makes sure the problem is actually in the component you think it is, and not something else. Oftentimes, just by creating an MCVE, I found my own errors. For instance, your latest question asks about a server-side problem, but only includes the client-side code.
Also, you have a tendency to include screenshots for non-styling issues. Again, these are very hard to reproduce, and the error could depend on your settings. It is much better to include a command line that reproduces your problem.
One more thing: if you find the solution to your question, write an answer yourself! Other people will benefit, and your stackoverflow reputation will rise much more quickly, since answers tend to attract more upvotes, and give +10 instead of +5.
If your question contains an MCVE (which means the code should usually be less than 30 lines in JavaScript, maybe 50 at most), you'll find it often gets answered quickly, even when it seems impossible to solve for you.
I'll make you a deal: If you have any question with an MCVE (try it out yourself: can you reproduce the full error just by the information in the question itself?), and it does not get answered on stackoverflow within an hour, drop me a mail (or reddit message) and I'll answer it.