3

This question gives a piece of code and states:

Using the above code doesn't work

This answer gives the pure exact same code and nothing else. It doesn't event attempt to answer because it contains the question itself and nothing else.

I tried to flag with an explanation:

This post is strictly identical to the question code sample. So it's not an answer, it's purely duplicating the question with no additional explanation whatsoever.

The flag was declined with no explanation on why it was declined.

13
  • 1
    @Cerbrus, it appears the OP used a custom mod flag here, in addition to the NAA flag previously reported. I'm not sure the duplicate is appropriate. Mar 14, 2017 at 14:31
  • 1
    @Cerbrus no, question is different. It's an answer with absolutely nothing in it.
    – Cœur
    Mar 14, 2017 at 14:32
  • The answer is the same: OP didn't use the right flag. It is an attempt at answering. A poor one at that, but still can be seen as an attempt. "Very low quality" could have been approved, but a downvote would've been the safe bet.
    – Cerbrus
    Mar 14, 2017 at 14:32
  • 1
    Closely related: Are "your code works fine for me" answers acceptable?
    – jscs
    Mar 14, 2017 at 14:32
  • 2
    @JoshCaswell: I can't see anything implying the code works for the answerer, though.
    – Cerbrus
    Mar 14, 2017 at 14:33
  • Did you cast a NAA flag or did you go with a mod flag first thing? I fail to see why a NAA flag would not work and I think that may be why it was declined as it was something the community could handle. Mar 14, 2017 at 14:34
  • @NathanOliver I tried NAA first, then it said "you already used this flag", so I tried moderator.
    – Cœur
    Mar 14, 2017 at 14:35
  • 2
    @Cœur "It's an answer with absolutely nothing in it." But it's still "an answer". If I'd answer a programming question with a recipe for a good apple pie, it'd still be an answer. It'd just be VLQ. (And should be deleted)
    – Cerbrus
    Mar 14, 2017 at 14:36
  • @Cerbrus there was no VLQ flag to choose from in the list
    – Cœur
    Mar 14, 2017 at 14:37
  • 1
    @Cœur: Then downvote it...
    – Cerbrus
    Mar 14, 2017 at 14:37
  • 1
    "If I'd answer a programming question with a recipe for a good apple pie, it'd still be an answer" I really would like to hope that's sarcasm. Sadly, I suspect it isn't.
    – jscs
    Mar 14, 2017 at 14:38
  • 2
    OK. It passed review. I did notice there that the question code and the answer code do differ so I can see why they said looks ok. Normally in cases like this I leave a comment as While this code snippet may solve the question, including an explanation really helps to improve the quality of your post. Remember that you are answering the question for readers in the future, and those people might not know the reasons for your code suggestion. Mar 14, 2017 at 14:38
  • 1
    @JoshCaswell: That's just how the "NAA" flag is interpreted by the mods. If it in any way attempts to answer the question, NAA doesn't apply. NAA is meant for gibberish / "I'm having this problem too", etc.
    – Cerbrus
    Mar 14, 2017 at 14:41

1 Answer 1

7

Not the moderator who declined your flag, but I think I can surmise why.

Here's the code sample from the question:

override func preferredStatusBarStyle() -> UIStatusBarStyle {
 return UIStatusBarStyle.LightContent;
}

And here's the code sample from the answer:

class Scene2ViewController: UIViewController {

    //blah blah code

    override func preferredStatusBarStyle() -> UIStatusBarStyle {
        return .LightContent
    }
}

Other than the seemingly superfluous class definition, notice the return statements. The answer omits the UIStatusBarStyle enum name from the expression. For all the moderator knew, omitting the enum name could have had a different effect, and so they chose to err on the side of caution and not assume the code was in fact functionally equivalent, and so declined your flag on those grounds.

Of course, knowing Swift I know the code is functionally identical, and I likely would have handled your flag differently had I seen it. Often we'll ask around if we need a second opinion on custom flags like this on questions and answers, but don't rely on this happening. I think this is one of the rare cases where I'd actually recommend that users who know better, with the right privileges vote to delete such answers — moderators tend not to act on flags that have a basis on technical accuracy in general.

You must log in to answer this question.

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