1

If a question simply asked "I need an efficient way to detect that the numbers in an integer array appear exactly twice." should it be closed as too broad?

https://stackoverflow.com/q/29337568/1493294 basically asks that. It certainly seems to show little effort as it appears to be a cut and paste from a homework assignment but that is all it's asking.

However, there is nothing about it that seems too broad to me. It is well defined and solvable. It just makes no attempt to hide that it is homework.

What I read in the help center and on meta indicates such questions should just be down voted. Yet I keep finding them closed. Am I missing something?

Answer well-asked questions

Not all questions can or should be answered here. Save yourself some frustration and avoid trying to answer questions which...

  • ...are unclear or lacking specific details that can uniquely identify the problem.
  • ...solicit opinions rather than facts.
  • ...have already been asked and answered many times before.
  • ...require too much guidance for you to answer in full, or request answers to multiple questions.
  • ...are not about programming as defined in the help center.

I don't see "homework" or "zero effort" in that list.

See:

https://stackoverflow.com/help/how-to-answer

https://meta.stackoverflow.com/a/260909/1493294

https://meta.stackoverflow.com/a/253890/1493294

Gnat claims this question is a dupe of How should I flag a “non-effort-at-all” question in Triage? [duplicate] However this question has no answer nor does it cite anything with authority and is itself a duplicate. It is conflating the issue of an ignorant OP who would require to much effort to answer and an OP who simply hasn't demonstrated effort. These are not the same issue.

I want to write an app which shows applications send or receive data over internet and which ip address and port they use. How can I write this in python?

Now that is a broad question. It happens to also show very little effort. That doesn't mean every zero effort question is too broad. That is faulty logic.

33
  • @gnat OP never asked what a mouse was. You're conflating zero effort with a demonstration of ignorance. Mar 30, 2015 at 7:03
  • 3
    Did you read it? Quote: "Pick anything, it does not matter on crap like this" Mar 30, 2015 at 7:19
  • 3
    "It is well defined and solvable" - yeah, so well defined that OP doesn't even care if the answer is in C# or Java! So well defined that OP doesn't define any specific problem at all, they just copypaste their homework assignment. I don't see why anybody would have a problem with such a crap question being closed and deleted as fast as possible. And btw, if you are the one who upvoted that heap of crap, please read the hover text of the upvote button a hundred times.
    – l4mpi
    Mar 30, 2015 at 7:23
  • The "Pick anything" attitude is what I'm taking issue with. It is horribly unjust and a misleading way to respond. Mar 30, 2015 at 7:26
  • 3
    @I4mpi StackOverflow is a knowledge base. It doesn't care about the OP. Therefore the "research effort" doesn't have to be shown by the OP, just by the question. The OP can be an idiot and it can still be a good question. Thinking the other way makes this far to personal. This isn't a popularity contest. Mar 30, 2015 at 7:28
  • 2
    @CandiedOrange also note it's the only result that deals with a "dual array" as defined by OP. I'm rather positive that this is because it's a contrived example problem that nobody ever needs in the real world. All other results deal with more practical problems like finding duplicates in an array, or even the only unique value in an array of duplicated values (those examples are often itself somewhat contrived, but far less so than OPs question).
    – l4mpi
    Mar 30, 2015 at 7:48
  • 2
    Look, this problem was created by SE, they removed all reasonable language from the close dialog to respond to this question properly. In the olden days, this would be very quickly dispatched with "Too localized". The "do you consider yourself a liar" putdown is a low blow, is one liar worse than an SE employee that created thousands of liars? The dialog was meant to make you feel stoopid so you'll refrain from using it, SE gets a lot less complaints in the inbox today. Problem solved but we've got a site with a lot of crap today. If you don't want to act stoopid then just don't use it. Mar 30, 2015 at 7:52
  • 4
    And "Stackoverflow does not exist so you can pass judgement on people" is just one more completely useless moral judgement on your part. I'm not juding people, I'm judging the usefulness of the question, which is IMO exactly zero to anybody but OP (and their classmates with the same assignment).
    – l4mpi
    Mar 30, 2015 at 8:22
  • 1
    It used to be the close reason to use when an answer to a question can only ever help one person. Like this one. You cannot say that anymore. You'd have to say something that sounds like "helps too many people", your basic objection. Mar 30, 2015 at 8:42
  • 6
    It's all about quality control. Simply think about what would happen if SO would accept homework dumps like those with open arms - if these questions get answered, that alone provides a huge incentive for every lazy stundent (and there are tons of them) to simply dump their CS homework on SO. Even worse, if these get upvoted, these people now earn reputation for copypasting. And because any half-decent answers to even the worst questions usually get upvoted, this provides an incentive for answerers who don't care about quality. Swift closure is the best way to prevent all of this.
    – l4mpi
    Mar 30, 2015 at 9:01
  • 1
    @CandiedOrange if OP puts effort into the question, they are either able to solve it themselves or might arrive at a more useful question, such as an error when accessing the array, or scoping issues, or any other kind of bug. Especially in the case of beginners, the bug will probably be a common issue. That in turn means it's potentially useful, unless of course it's complete nonsensical code or one of the 1.5k duplicates of "what is a NPE".
    – l4mpi
    Mar 30, 2015 at 9:21
  • 3
    "Zero effort" is just your beef with it. It doesn't help the next hundred programmers, that's the problem. Questions that do help other programmers do tend to require more than zero effort, it is fairly inevitable. Mar 30, 2015 at 9:30
  • 1
    @CandiedOrange as I said above, the tour (which is the very first thing a new user should read) literally says Don't ask questions you haven't tried to find an answer for. Not "you will be downvoted", not "it's discouraged", simply don't ask. Also, why would it need to be explicitly mentioned somewhere that crap like OPs question is not welcome? You have not given any argument why it should be kept, except for some vague notion of it being "unfair" (to whom?). That you don't seem to be able to find one seems like a pretty good reason to delete the question.
    – l4mpi
    Mar 30, 2015 at 11:25
  • 3
    @CandiedOrange just because you assert that the burden of proof is on me, doesn't mean it is. You've seen yourself how the community responds to those questions, the burden is on you to prove that this is a bad thing (hint: it isn't). Furthermore, you apparently didn't read the tour page because the sentence I quoted ends with show your work in brackets. And even Shog in his answer says that the question should be closed, just with unlcear and not too broad. If his opinion isn't enough, John Atwood (SE founder) also repeatedly said that those questions are crap, look it up on meta.SE.
    – l4mpi
    Mar 30, 2015 at 12:25

1 Answer 1

-3

However, there is nothing about it that seems too broad to me.

...then closing it as "Too Broad" would be lying. Are you OK with that? Lying? Not just to the person who asked the question, mind you; to those who might answer, those who might have the same question, others reviewing and the system itself (which uses question closure as input for various other things).

Do you consider yourself a liar, sir?

If not, then using this close reason in places where it does not apply is not for you.

I'm of the opinion that effort is generally a poor reason to close questions, although lack of research is often a great reason to downvote. Homework tends to have other problems as well though: sadly, folks posting their homework verbatim often fail to actually write a question to go along with it, implicitly asking someone to solve a problem that's ill-defined to the satisfaction of someone (the person who assigned the problem) who will neither read it nor be able to clarify any ambiguities present. These can (and should) be closed as unclear what you're asking.

But in the absence of any other critical problems, questions that are well-specified, clearly-written and about programming should be left open.

4
  • 5
    Your edit just saved you from a snarky comment. The question in question is a straight up copypaste of a homework assignment that even failed to define the language; I personally don't care at all how it is closed and deleted, just that it's reasonably fast. This was even one of the rarer cases where the question was closed before somebody could dump a heap of uncommented code as an "answer". On another note, is there a way to permaban the person that upvoted the question?
    – l4mpi
    Mar 30, 2015 at 7:16
  • 1
    Who exactly is "you" here? Shog9, could you please edit this answer to be a little less personal? Mar 30, 2015 at 7:57
  • 2
    @CandiedOrange I think he refers to your note "nothing about it that seems too broad to me", meaning that one should use particular close reason only when one is certain that it applies
    – gnat
    Mar 30, 2015 at 12:52
  • 3
    Bah, humbug. If someone simply drops a spec on a question, the only true answer is "hire a developer." That's off topic, as we have a site for doing so--one that you should be promoting.
    – user1228
    Mar 30, 2015 at 18:30

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