What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by gnat, hims056, Mołot, Hugo Dozois, Duncan Nov 22 '13 at 16:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

3 Answers 3

up vote 6 down vote accepted

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.

share|improve this answer
add comment

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.

share|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
add comment

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

share|improve this answer
add comment

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