2

I've been seeing this trend where people, who post questions that are related to problems with their code, just post the part of their code that they think is "pertinent" for the public. How should I respond to that? It's getting quite annoying and I don't know if any of you are seeing this too.

1
  • 2
    I'm pretty sure you meant question instead of answer in your title. Please edit to make the title meaningful. Something like "How should I respond to questions that only provide code snippets?".
    – per1234
    Nov 4 '16 at 21:58
6

It's a well-known problem. I set up a web site a while ago: Snippets R Us! to address this issue.

I've seen plenty of times a post that "this must be the problem" (posting a couple of lines of code) and "this can't possibly be the problem" (omitting a whole lot of code).

A useful comment you can make is:

Please post a Minimal, Complete, and Verifiable example

The Snippets R Us site tries to explain why this is a good idea. Often narrowing down the problem to a small example clarifies in the poster's mind what the issue is, and isn't.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .