1

An example might be:

Here is a Python list of data: [1, 2, 3, 4, 5]. How do I get the sum?

Or

Here is a complicated data structure: Foo(complicated_values) (followed by some copy/paste source code). How do I turn Foo container into a sorted array of complicated_values in faster than quadratic time complexity?

These questions are not asking for a reference of any kind, rather they exhibit the classic "what have you tried" problem of asking directly for the solution. The question is asking for someone to write code directly into the answer box that, when executed, computes the desired effect.

Currently there doesn't seem to be a way to signal this in the close-vote options. There is an option for off-topic questions due to seeking references, but I feel that very much doesn't apply to a question like this.

14
  • 1
    'Too broad' or 'Unclear what you're asking' should work well for such cases. Commented Mar 19, 2015 at 18:15
  • 4
    I'm not sure I agree. The first example question is the total opposite of broad. It asks a highly precise question about exactly the scope of the computation to perform. It's very clear what is being asked. It's not broad or unclear at all, rather just lazy.
    – ely
    Commented Mar 19, 2015 at 18:17
  • 7
    Don't ask, "what reason should I use to close this question I want closed?" Instead go through each of the close reasons and ask yourself which of them apply to this question. If none apply, then don't vote to close.
    – Servy
    Commented Mar 19, 2015 at 18:19
  • 2
    Regarding the 1st question: Aren't there multiple ways to achieve this in python? Commented Mar 19, 2015 at 18:20
  • 1
    I was always told to use "too broad", but I don't know if there's an official guideline.
    – Andrew
    Commented Mar 19, 2015 at 18:24
  • @Mr.F I don't care so much for a specific close reason in such case (both I proposed would fit well). It's the laziness you mention that makes this question deserved to be closed. Commented Mar 19, 2015 at 18:28
  • 4
    @Mr.F "... answering the question would also receive some kind of -50 rep penalty ...." LOL! I'd love to see such thrown/slapped into the face of all those filthy rep-whores lurking and hanging around. That's a terrific proposal! Commented Mar 19, 2015 at 18:37
  • first example: downvote and move on, or just move on. doesn't need to be closed. 2nd example, will depend on whether or not the question is clear and not too broad. We don't have a not enough effort close reason. You could however close it as a duplicate if you can find one.
    – Kevin B
    Commented Mar 19, 2015 at 19:32
  • 2
    Given the expansion you've made in the comments, What happened to the "you're just lazy" close vote reason? is related reading for you.
    – jscs
    Commented Mar 19, 2015 at 20:12
  • Then don't close it. If it isn't too broad, it isn't too broad.
    – Kevin B
    Commented Mar 19, 2015 at 20:32
  • Of, course, this is where the guideline you mention gives us enough reason to make exceptions for real copy/paste homework questions that may also be specific enough to be answered.
    – Kevin B
    Commented Mar 19, 2015 at 20:35
  • 1
    @Mr.F too broad may fit more frequently than it seems, if you take into account the way it is laid out in another answer of the same guy who wrote top answer in dupe target: "... ME: Click the right mouse button. NOOB: What's a mouse? How much text do you suppose it will take to explain things now?" -- any time you smell that requirements dump simply doesn't let answerers figure how much they need to explain, recall this "What's a mouse?" example
    – gnat
    Commented Mar 19, 2015 at 20:39
  • Unfortunately i think you would still need to provide examples for that question, and you'll likely just again be told to use too broad. The only guideline that isn't covered by a close vote reason word for word is the homework guideline you are focusing on.
    – Kevin B
    Commented Mar 19, 2015 at 20:45

1 Answer 1

10

The two examples you gave are two very different situations, so I'll address each separately:

Example 1

As much as I hate coming across questions like this, the fact remains that these questions are often very popular and bring in a lot of views for stackoverflow. Take a look for yourself. However, these questions are also very often duplicates of other questions, so see if you can find one to close it with. If it's clear, on topic, not too broad, and not asking for an opinion (or the "Best" solution,) leave it open.

Example 2

I don't understand the question being asked (maybe that's the point?) but if a question includes current output, code that generates it, and then expected output, i don't see anything wrong with the question. He/she clearly explained what they have and what they want. It is clear what they are asking for, it's specific, isn't asking for an opinion or reference material, and therefore doesn't need to be closed.


In both cases, if you feel the user didn't do enough research before asking, downvote it. But don't try to shoehorn in a close reason that doesn't fit the question just because you don't like it.

7
  • According to the guidelines, point 3, questions like Example 1 are not on-topic. But there is no way to signal that they are off-topic due to merely asking for someone else to solve the problem for you, lacking effort or evidence of what was tried.
    – ely
    Commented Mar 19, 2015 at 20:20
  • 1
    I don't feel point 3 should even be there anymore. The majority of "homework" questions i've come across can be on topic once slightly edited to not be a homework question. If they can't be, they're likely closeable by the unclear or too broad reasons.
    – Kevin B
    Commented Mar 19, 2015 at 20:21
  • By that definition everything is homework.
    – Kevin B
    Commented Mar 19, 2015 at 20:23
  • I don't see what the question being about "homework" has to do with the questions relevance on stackoverflow.
    – Kevin B
    Commented Mar 19, 2015 at 20:24
  • I still think too broad would be the choice close reason, if it is indeed too broad. but, of course, whether or not it is too broad can be subjective, so you'd need 4 other people to agree with you. A question can be specific enough to side-step the too broad close reason without including attempted solutions.
    – Kevin B
    Commented Mar 19, 2015 at 20:32
  • There is no indication that the question is a homework question at this point. I'd much rather downvote the user so that rate limiting can do it's job, even more so if it's a new user.
    – Kevin B
    Commented Mar 19, 2015 at 20:39
  • 1
    @Mr.F You mean this question? Sure it's not exactly an amazing question, but votes indicate it has been well-received by the community. And on top of that, it has 186,107 views! That's a lot of people that question has helped, and I don't think it should just be discarded.
    – Ajedi32
    Commented Mar 20, 2015 at 15:03

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