Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Unfortunately the post I have in mind has been edited to the point where it wouldn't make sense, but take this situation:

A question is asked of the style "I'm having a problem with this code, this is the error I get" with a code sample.

An answer is posted of "there's nothing wrong with this particular code sample you posted, you should look elsewhere if you're having problems" with a new included code sample demonstrating the fact that there's nothing wrong with it.

Is this an acceptable answer, or is this something that should be just a comment?

share|improve this question
Are "works for me" answers valid? – squint May 2 '13 at 14:56
@Squint, I contest that 'works for me' is not the same as 'works for me and here's how you can be sure of it' in terms of overall usefulness. – PhonicUK May 2 '13 at 14:58
Read the question. It's the same. You said it works, and provided a demonstration showing that it works. This does nothing to help the OP with the actual issue, unless you actually think they're lying and have nothing better to do than to deceitfully post bogus questions. – squint May 2 '13 at 15:00
up vote 11 down vote accepted

This site is riddled with questions where the actual problem is not really present in the code.

Because of this, we have a bunch of comments which are either asking for "the real code" or asking for other parts of the code (where is x instantiated?)

Telling someone that you've copied their code and it works is effectively one of those comments, and it should be posted as a comment.

share|improve this answer
I am then perhaps a tad too literal about what an 'answer' is :) – PhonicUK May 2 '13 at 15:04

You must log in to answer this question.

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