0

I've looked at some of the information on meta about XY problems and dealing with them. Just now I was on some comment threads regarding the question here Create factory pattern.

Ultimately an answer that solved the X part of the question was accepted, but it is clear from the OPs comments that they don't understand the meaning of the answer. The accepted answer would also be confusing for people trying to understand the Factory pattern.

I ended up down voting the question, but is there any other means of moderation available to keep incorrect information from bubbling up from a query?

Note that I am not criticizing the person that received credit for the answer as based on the straight reading of the question their response will solve the problem. But as an example of using a factory pattern it is incorrect.

For the possible duplicate Overriding Accepted Answers I don't really want to override the accepted answer, just want to indicate that this answer doesn't reflect a good example of a factory pattern.

6
  • Why downvote the question? The OP asked an answerable question, and there is an accurate answer even with the most votes: stackoverflow.com/a/29168061/1026459 . Just downvote the answer if you feel it is bad practice.
    – Travis J
    Commented Mar 20, 2015 at 15:05
  • 1
    It represents 0.00013% of the C# questions. Google is unlikely to put it at the top. In fact, none of the C# posts at SO about the factory pattern is on top, a possible side effect of SO having a lot of bad ones :) So this isn't that big of a deal. Commented Mar 20, 2015 at 15:55
  • @Travis It's not the answer that I have an issue with because it solves the question posted. My issue is with the entire post being referred to as a Factory pattern when both the question and the answer would be a bad example of the problem. Commented Mar 20, 2015 at 16:04
  • The question was only asked 3 hours ago? This might be a problem for an "entrenched" answer, but it's hard to know exactly how things will shake out for a newish question. Commented Mar 20, 2015 at 17:42
  • If I had 250 more rep, I'd vote to reopen. Commented Mar 20, 2015 at 17:46

1 Answer 1

6

All you can do is downvote.

The question doesn't qualify for any of the close reasons (note: I did not try to find any dupes). It's a clear question with an MCVE and asks a very specific question that describes what he wants to happen vs. what he is getting. That alone puts in head and shoulders above some of the other crap we get here.

As far as it being "incorrect", that's your opinion and you can express that with a downvote. I wholly agree that the example given is not how a factory pattern is intended to be used. BUT I can't dictate to every developer in the world that what I believe to be correct is the only correct way of doing something and thou shalt be damned for doing it any other way! And even if I could, I can't enforce it.

Failed to read

People will do dumb things. Sometimes they have to learn from their own mistakes. The best you can do is warn them off with a downvote and maybe a comment and hope they heed the warning. If a few "DANGER" and "WARNING" signs could prevent all the dumb real world things people do, that would be fantastic. But it doesn't work that way. So the best we can do is post the warning signs and hope.

6
  • 3
    I'll add a comment to the accepted answer and move on. Commented Mar 20, 2015 at 16:04
  • Dumb bear. Can't you read? Commented Mar 20, 2015 at 16:27
  • 1
    Downvoting is not all you can or even should do; this is one of the best uses for comments. Comment on the accepted answer so that future readers have a chance to be able to see the problems with it, and comment on the question asking the OP to select a more appropriate answer. Downvotes do not, on their own, provide nearly enough information to OP or to future site visitors. Commented Mar 20, 2015 at 17:48
  • @KyleStrand Hence the idea to comment in the last paragraph.
    – Becuzz
    Commented Mar 20, 2015 at 18:14
  • 1
    @Becuzz No offense, but putting the phrase "and maybe a comment" in the middle of your last paragraph is not enough to offset starting your answer with "all you can do is downvote." Commented Mar 20, 2015 at 18:34
  • 1
    @KyleStrand you're so meta :-) Commented Nov 11, 2015 at 17:33

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