3
\$\begingroup\$

This question was closed as unclear:

https://codegolf.stackexchange.com/q/40423/18487

The question has a well-defined input and output, and the question title made the goal clear: shorten it as much as possible. It was closed as unclear. That user may come back and attempt to "clarify" the question, and then finally our hand will be forced, and we'll have to tell him the real reason why it was closed:

This question appears to be off topic because it is primarily code that the community has been requested to shorten or improve in some way.

If this community does not actively golf or improve other people's code, just be straightforward and say that (in a nice way). I propose that we use the wording above, but I'm open to suggestions.

Here's a more verbose, alternative wording. I think it's too long, but it reflects the point that I would actually want to get across to the offending user.

This question appears to be off topic because it is primarily code that the community has been requested to shorten or improve in some way. If you need feedback, try posting a challenge, and then posting your code, shortened or improved as much as possible, as an answer to that challenge.

\$\endgroup\$
5
  • 3
    \$\begingroup\$ Personally, I agree with Martin's comment. It would be helpful to know what's supposed to be happening before I dive into the code. A synopsis at the top would go a long way toward reopening, IMO. Right now it's the equivalent of a 'gimme-the-codez' dump at SO. \$\endgroup\$
    – Geobits
    Commented Oct 27, 2014 at 17:40
  • 2
    \$\begingroup\$ The real problem isn't that the asker has code. The real problem is that the asker didn't provide a spec. "How do I golf X" is fine if you tell us what X does. \$\endgroup\$ Commented Oct 27, 2014 at 17:45
  • 3
    \$\begingroup\$ The real reason that it was closed is that it's not clear what the question is. Firstly, code is not a spec: without an actual spec no-one knows which optimisations are permitted. Looking at that massive chunk of code and the output, I would be inclined the throw the lot away and replace it with hard-coded output. Secondly, "How" is ambiguous: is he asking for principles or for us to actually do the work? Thirdly, where does "make dict for non emty lists" fit into this? \$\endgroup\$ Commented Oct 27, 2014 at 17:46
  • \$\begingroup\$ @PeterTaylor When a compiler optimizes code, does it need an English description of what it does in order to determine which optimizations are permitted? No. The only rule is that the behavior must remain the same. My college professor had another name for it, but the Internet calls this the as-if rule. Code can serve as a spec, and a perfectly unambiguous one at that. \$\endgroup\$
    – Rainbolt
    Commented Oct 27, 2014 at 18:58
  • 1
    \$\begingroup\$ To be clear, I do agree that it could be a good new close reason, provided we actually need it on a more regular basis (as Peter answered below). However, if you want the change to be made, you have to offer good evidence that it's needed (or at least beneficial). I'm saying your chosen evidence is not good. At the very least, it's disputable, and only one case. \$\endgroup\$
    – Geobits
    Commented Oct 27, 2014 at 21:11

1 Answer 1

4
\$\begingroup\$

The five per-site custom close reasons are for handling common problems. Until we're closing a question a week for being "Do my golfing for me" questions we don't need to change the site config.

\$\endgroup\$
3
  • \$\begingroup\$ This answer implies that we don't already get a question per week asking this community to golf, speedup, obfuscate, or otherwise transform their code. I can't really prove that we do, because those questions tend to disappear shortly after they arrive. \$\endgroup\$
    – Rainbolt
    Commented Oct 27, 2014 at 18:30
  • \$\begingroup\$ If you note down the question IDs when you see new ones coming in and update this with stats then you will have a more persuasive case. \$\endgroup\$ Commented Oct 27, 2014 at 19:12
  • 2
    \$\begingroup\$ Well, you dismissed my case with a not so persuasive case of your own. I'm not going to put forth a lot of effort to put together a case that I can already tell nobody will care about. That would be a waste of my time. I will put forth a lot of effort when the I feel like the community is ready to accept the results. I think it's just a bit extreme to say "Monitor incoming questions for months or you have no case." \$\endgroup\$
    – Rainbolt
    Commented Oct 27, 2014 at 19:17

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