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 Answer
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.