Sometimes i can see people asking general programming questions about concepts. The answer to these question requires only theory and no code. Is stack overflow the right place to ask such questions also or does the question necessarily require code?? If questions require code, then does stack exchange have any other site to post such questions?

One example... now removed...

another example... now closed...

  • 1
    FIrst example: closed and deleted.
    – user102937
    Jun 28, 2013 at 5:31
  • I closed the second one as too broad.
    – user102937
    Jun 28, 2013 at 5:32
  • Yeah, it was deleted recently...
    – prince
    Jun 28, 2013 at 5:32
  • broad as in it being too generic??
    – prince
    Jun 28, 2013 at 5:33
  • 5
    "There are either too many possible answers, or good answers would be too long for this format."
    – user102937
    Jun 28, 2013 at 5:33
  • ok, i got it...
    – prince
    Jun 28, 2013 at 5:35

1 Answer 1


Verbatim from Help Center:

We feel the best Stack Overflow questions have a bit of source code in them, but if your question generally covers…[list]

As you can read, questions typically should have source code. It's a Q&A site about code, so therefore code should be involved.

For questions that do not include code, you shouldn't even have a reference to having code at all (as in saying in your question "I have this code that does {x}"). If you have code that you are wondering about it, drop the relevant lines into the question.

The problem with no code

All sorts of flags start to pop up when users ask about a coding problem with no code. One's I can think of off the top of my head are:

  • Help vampires, they want a consistent supply of code a little bit at a time (by asking different but related questions) in the hopes of completing some sort of project. Usually members that consistently come to the site pick up on these people and their tricks are discovered.
  • Homework or school assignments (How would I go through an array in Java, how do I concatenate a string in {programming language}). Asking about school assignments isn't necessarily a bad thing but 1, it could be considered cheating, and 2, you should read the material your instructor has provided first.
  • They are looking for an opinion. Opinions are no good on a Q&A site. Opinions aren't answers. They lead to debate and arguing and general flame wars that spin out of control. Answers should be concise.


Can your question have no code? Yes, but tread lightly. It better be very specific otherwise it will most likely get closed. Typically you won't have a programming question unless you are actually coding.

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