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

To help reduce the number of questions that consist of "write this program for me" or asking for help without any code samples, should Stack Overflow force any question that has a tag that's code related to include code before submitting? Non-code related tags such as or would not require code.

Do you think this will help improve the quality of questions here? Will it make the interface less usable?

share|improve this question

closed as off-topic by Fish Below the Ice, James, MichaelT, S.L. Barth, Werner Aug 19 '15 at 19:27

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question pertains only to a specific site in the Stack Exchange Network. Questions on Meta Stack Exchange should pertain to our network or software that drives it as a whole, within the guidelines defined in the help center. You should ask this question on the meta site where your concern originated." – Fish Below the Ice, James, Community, S.L. Barth, Werner
If this question can be reworded to fit the rules in the help center, please edit the question.

What's a code-related tag? – Rob W Dec 12 '12 at 16:42
Forcing users to do stuff is a horrible thing. Prompting them with "Hey, you haven't added any code, what's the deal?" would be better approach IMHO, but I regardless, I'm not sure the issue is large enough to need such radical changes. Users are now forced to not-use "Problem" in titles, and I stick by my thoughts at the time that it's the single worst change Stack Exchange has ever made. – Matt Dec 12 '12 at 16:43
Any tag involving a name of a programming language such C or C++ should require code. For tags that are not programming languages such as uml or oop, they won't require code. – DrinkJavaCodeJava Dec 12 '12 at 16:43
To be honest Matt I think your idea is better. Have a prompt ask are you sure if you don't post code. – DrinkJavaCodeJava Dec 12 '12 at 16:44
You'll likely just start seeing people not tagging their questions properly if you do this. They'll tack on the OOP tag just so they don't need to add code, or remove the code related tags, etc. Or you'll just start seeing plain text formatted as code to get the error to go away (it's annoying to see this done as often as it is already). – Servy Dec 12 '12 at 16:51
up vote 0 down vote accepted

Here are some questions that I've written with no code:

Do you think that those questions need more code? and if so, what would be the nature of said code?

share|improve this answer
Your second question does actually have code...not that your point isn't valid. – Servy Dec 12 '12 at 16:51
@Servy fixed... – Sam I am Dec 12 '12 at 16:52
Your new question had code, it just wasn't formatted as code. I fixed that for you =p – Servy Dec 12 '12 at 16:53
See also… – Kibbee Dec 12 '12 at 16:53
Why do you have the same question listed twice (first and third bullet points)? – RobH Dec 12 '12 at 17:01
@RobH was an accident – Sam I am Dec 12 '12 at 17:03
This isn't an answer, it's two questions. – vascowhite Dec 12 '12 at 17:11

"Force"? Absolutely not. There are plenty of good code-related questions that don't show code. Granted - by 'plenty', I don't necessarily mean a majority; but it is quite possible to ask good code questions in some cases without code.

As for a 'reminder', I'm not so sure about that. I wouldn't object horribly to the idea, but I'm just not sure it would have enough effect to make it worthwhile doing. I think that many people would just ignore it, and it would just be an annoyance to those whose question does not really need code. It could also prompt some people to post huge blocks of unnecessary code.

I think - as imperfect as it is - the best solution for this is for people reading a question to leave a comment when it seems code is required but was not posted.

share|improve this answer

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