37

I came across this question that asks why some java code fails some online coding competition.

It was solved; and the question even protected later on; but still it has like 30 answers by now, because a lot of people just dump their version of the solution in their favorite language there.

Maybe I am naive, but I am kinda wondering ... wtf?

Edit: would it be reasonable for example to fully protect such questions, to avoid any kind of later answer?

22
  • 12
    The question looks like it's from code review, but the answers make it look like code golf... interesting case
    – Floern
    Commented Jan 21, 2017 at 20:08
  • 2
    So many "code-only" answers ... I guess that's the quality this site is all about :P. Too bad, that they aren't able to be flagged as VLQ and spenting ~20 rep points for them .. :/
    – Tom
    Commented Jan 21, 2017 at 20:19
  • 2
    If the non java answers get downvoted to negative territory we can vote to delete them and your rep will be refunded. Though frankly at 28K it shouldn't make any difference. Commented Jan 21, 2017 at 20:28
  • To avoid any new answers being added, the question could be closed as Off-topic (Code Review) or Too Broad.
    – Floern
    Commented Jan 21, 2017 at 20:33
  • 7
    Yes, you need to use a smiley every time you are not serious. Humour is very hard to intuit online (particularly for non-native English speakers). Commented Jan 21, 2017 at 21:30
  • 1
    And especially when the "humour" is just a statement that can be taken at face value. IIRC it said something like you don't like to spend on downvotes more rep than you receive on upvotes in any one particular day. Commented Jan 21, 2017 at 21:32
  • 3
    I've downvoted almost all of the answers, Java or no, as very few of them actually acknowledge that there's an OP asking a question about their attempted solution. Most of them are just people posting their attempts at the problem. They don't tell the OP how to improve their code. Commented Jan 21, 2017 at 21:36
  • 3
    Only one answer remaining: Codility equilibrium index sample test - my stab at it. Good thing is that every deleted anwer has a comment explaining why it isn't appropriate.
    – Tom
    Commented Jan 21, 2017 at 21:36
  • 2
    Despite the slew of poor answers, the question is a good one. I don't agree with it being closed. Commented Jan 21, 2017 at 21:42
  • 10
    I don't think that's appropriate either, @dor. That's an abuse of the closure system, just because some people don't know how to read the question. The correct solution is just to delete the answers, as we've done. Sometimes Meta is regretfully necessary for successful moderation.
    – Cody Gray Mod
    Commented Jan 22, 2017 at 7:50
  • 2
    Somebody around who wants to put up an answer with the "consensus" that has been reached here?
    – GhostCat
    Commented Jan 22, 2017 at 18:28
  • 1
    @Abhitalks It was protected from answers fro users with < 10 reputation.
    – GhostCat
    Commented Jan 23, 2017 at 7:42
  • 1
    @GhostCat: Oops! I don't know what I was thinking when I protected it an year ago. I should've closed it as well.
    – Abhitalks
    Commented Jan 23, 2017 at 8:35
  • 4
    It's "too broad" for sure. Commented Jan 23, 2017 at 12:09
  • 1
    Because they got all downvoted and then deleted. That can happen when several users with enough reputation start working such sinks of low quality answers. Remember to turn back here when you reached 10k rep then you can see them all. You know, I can see dead postings!
    – GhostCat
    Commented Jan 23, 2017 at 18:56

1 Answer 1

15

I agree with the WTF part; it's unusual to have so many pointless answers. I guess this question was linked to from some popular blog or something.

As people noted in comments, to prevent anyone from posting an answer, just close the question. However, if there is no reason to close the question, don't do anything - just vote "-1" for bad answers or vote to "delete" the non-answers.


Coding competition questions are often off-topic (too broad) here, because the competition sites provide no debugging feedback, and the OP doesn't bother providing any diagnostics. So the question is usually

Here is my code. The competition site told me it's bad. Please help.

However, this specific question is a little better than average. It asks

However the code fails because it fails a few complex arrays and does not scale well.

Here, you can answer at least the "does not scale" question. So the question should not be closed.

You must log in to answer this question.

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