Lots of people believe that their job is actually useless - and knowing your jobs are meaningless makes people depressed. That's how it feels to have to try to vote to close and/or edit questions that just have links to code or have too little code.
It feels like a waste of time. Like faxing instead of emailing, or like mowing a lawn with scissors instead of a lawnmower because "the powers that be" only gave you scissors and won't buy a lawnmower. This is because it seems like there are things that could be done but the company isn't doing them - therefore creating busywork.
It's also no fun because it feels like a rebuke to the user. There are nice ways to tell them but ideally, they shouldn't have gotten this far in the first place. It also feels like it's possibly pointless.
I know this part will be controversial but basically, it feels like being given busywork instead of actual work and as such it feels like the company should either (a) prioritize finding ways to stop it or (b) just stop trying and change the rules. I'd vote for (a) but I'm not holding my breath so I'm wondering at what point is (b) the more responsible/prudent/realistic option.
Maybe people can suggest solutions below.
A few ideas off the top of my head:
Maybe more aggressively add to the list of sites that get warnings when posting? At one point it was just jsfiddle and codepen but there are probably 50 or more sites that need to be on that list nowadays, possibly including GitHub.
Yes, GitHub would just get a warning but maybe the warning should be pretty stern as in "we see you have a link to github. If you don't have enough code in the question itself to reproduce the issue your question will be closed"
Maybe if the question has web-related tags then on submit strongly suggest an MRE snippet
Note: AFAICT most of the questioners making this mistake have no idea snippets even exist which is a perfect example of forcing all the answerers to do the busywork of informing people that the feature exists rather than the site itself doing this automatically and saving us the trouble.
Maybe consider adding support for more languages in snippets so other languages can also more easily be on topic. Possibly partner with some site(s) that already do this for other languages rather than do it yourselves?
For example the electronics site partners with circuit lab to have a circuit diagrams embedded. repl.it supports more languages. Apparently github will be adding something too and I'm sure there are more 3rd party sites that could provide this feature for S.O.
Maybe let people with tag rep insta-close for the "questions asking for debugging help need code in question" reason, same as they can insta-close for duplicates?
Maybe links to more examples based on tags?
I monitor the WebGL tag. WebGL is a verbose API. Some users complain their code will be too big and yet there are 1000s of examples of fully working WebGL snippets that are not that big. I'd love it if (a) there were galleries of per topic examples users could be pointed to and (b) if they were pointed to them automatically. In other words
📎: "It looks like you're writing a question on xyz. Here are 12 example minimal repos for xyz you could use as a template create your own."
Move Tags to the top of the question wizard
As it as tags are at the bottom. If they were moved to the top then hopefully the user will fill them in first giving you more info to direct their question. At the bottom it's arguably too late. This could be used for the previous suggestion if providing links to examples of minimal repos. It could also be used to decide which service to use for working code if you choose to support more than just html/css/javascript.
Make the question wizard more model / step based
I don't think I like this idea but maybe it will inspire something else. If the question wizard said
- enter tags __________ [next]
- enter question _________ [next]
- insert minimal repo ..code.editor.. [next]
- review .... [submit]
Would it lead to more on topic questions? I know it would be frustrating so I'm not suggesting it. What I am trying to make clear as that at least for html/css/javascript users, most have no idea they can even enter live working code snippets. Making that clear somehow would at least given them direction that it's possible. Ideally it would be possible for more than just html/css/javascript
On second thought, maybe until your rep is 15 points or something you should get an step by step wizard to handhold you through entering your question. It should start with tags and for any language that's supported it should present the snippet editor as one of the steps?
The goal here is to be helpful:
Helpful to the site's stated goals that a question without enough code to repo an issue is off-topic therefore it's a goal not to have those kinds of questions.
Helpful to users because the sooner they ask an on-topic question the sooner they get help. They'll also be happier not having their questions closed.
Helpful to responsible answerers so they can avoid this busywork and the uncomfortableness of having to direct questioners.