7

In this question, the OP had a bunch of syntax errors in his program. I simply went through and fixed them all, and judging from the fact that he accepted my answer, there was nothing else (in his view) wrong with the program. I also did this for another question, although my answer was slightly incorrect and so I deleted it.

From what I can see, these questions are a bit more rare than your average "fix my typo" questions because it's an entire program, rather than just a missing semi-colon or whatever. However I was wondering if the question is off topic since the only issue was numerous syntax errors.

5

A question with a "bunch of syntax errors" that is still focused to a specific programming problem is on-topic (maybe a Very Low Quality, though).

A question with a "bunch of syntax errors", which isn't focused, is not only off-topic, but somewhat annoying. In my opinion, the viewers should ask the OP to point at a specific problem rather than going over the code and fixing it all.

1

It seems my question is already answered here.

As opposed to Too Localized, it's suggested they should be closed as unclear what you're asking.

In this situation, it was trivial to fix the errors, and closing the question would have prevented an excellent answer from being posted. It not only helps the OP, but others who come across the question because the answer is correct and scalable.

I agree with it's unclear what you're asking because of the pitfall I fell into when I gave incorrect information, even though the answer I posted allowed the code to compile.

| improve this answer | |
  • Too Localized is gone. It was the "propably only helps the op"-question type close reason. – Johannes Kuhn Nov 22 '13 at 9:41
-1

"Debug my code" questions are off-topic on stack overflow.

Close them as Too Localized must demonstrate a minimal understanding of the problem being solved.

This close reason includes:

  • Understanding (readable) compiler/interpreter errors.
  • Understanding the basic syntax rules for that language.
  • ...

Close it. Now.

| improve this answer | |