15

This question was closed because

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Reproduced (for those who can't see deleted questions):

How to call a put method in rest with following request body

{
   "salutation":"Mr.",
   "firstName":"Tim",
   "lastName":"Cook",
   "title":"Chief Executive Officer",
   "level":"C-Level",
   "department":"Executive Office",
   "account":{
     "id":2
   }
}

This is not a great question, but the reason given to the OP for closing it seems wrong.

They were not asking for a "tool, library, or favorite off-site resource" (or at least not more than the hundreds of legit questions asking "How can I do X?")

There seems to be a growing trend to close questions that could be answered with a five-second search for this reason. Is this correct?

18
  • 15
    Yeesh. What the hell happened there? It's not a good enough question to reopen though.
    – Robert Harvey Mod
    Commented May 24, 2014 at 23:58
  • 39
    @RobertHarvey Initial wrong close vote gets cast. Others think "all I know is that it needs to be closed" and just select whatever has the convenient blue thingy next to it .... I'm guessing.
    – Bart
    Commented May 24, 2014 at 23:59
  • 3
    Yep. Honestly, that question didn't really require any more thought than that, though it would have been nice to get the close reason right.
    – Robert Harvey Mod
    Commented May 25, 2014 at 0:00
  • 10
    @RobertHarvey, yes, particularly because the close reason is feedback to the OP. It helps him (potentially) modify his question and have it reopened. Now he has incorrect feedback. (Though I don't think I'm going to cry any tears over this one.) Commented May 25, 2014 at 0:10
  • @RobertHarvey I think the OP deserves at least a comment explaining it's the wrong reason. As mod you can leave comments on deleted posts, right? This, or it's also possible for a mod to undelete, reopen, close right away with proper reason and delete again. Commented May 25, 2014 at 12:40
  • 16
    And, again, it boils down to the disappearance of the "not enough effort" reason for closing.
    – PM 77-1
    Commented May 25, 2014 at 16:52
  • The title was "Consuming RESTful api using java". The question doesn't really provide enough context of what's being asked, but given that title, it seems like the question was most likely "what Java API can I used contact a RESTful service and use this a request body?" That's a non-trivial extrapolation, but it'd certainly be a library request. I think that "unclear what you're asking" would be more appropriate, but if we already admit that it's unclear (susceptible to multiple interpretations), then it's conceivable that one of those interpretations was a library request. Commented May 25, 2014 at 17:04
  • 3
    @JoshuaTaylor, but you could say that about almost any question "How can I do X?". "Oh, you can use a library for that, but then that means this question in off-topic...FLAG" Commented May 25, 2014 at 23:57
  • How do I create and consume a RESTful api in Java? That's a request for a howto (or a library - e.g. Jackson or GSON) to me. Commented May 26, 2014 at 0:09
  • 1
    @ElliottFrisch, though Jackson and GSON would be actually be answers to "How to I parse JSON in Java?" Commented May 26, 2014 at 0:10
  • @PaulDraper It depends; in this case it would answer - "with following request body".... Also, presumably the response is also in "JSON"... so then it's how do I generate JSON requests (and consume responses). Then HTTPClient to do the GET/POST, and now we're looking at two or three off-site tools. Commented May 26, 2014 at 0:11
  • 2
    @ShadowWizard: I certainly think the closure deserves at least the same amount of effort that the OP put into his question. Oh, wait.
    – Robert Harvey Mod
    Commented May 26, 2014 at 4:25
  • 2
    @Robert OP probably have no idea he needs to put more effort, so now all he got is a wrong and misleading close reason. And we've all put here x100 more efforts than him already. There's always the (small) chance that with proper comment/close reason and nudge in the right direction, such users might learn how to ask and actually become productive. Commented May 26, 2014 at 6:38
  • 1
    I suspect that the close reason was picked at random, since there was no "lazy question" close code. (There used to be a couple of such codes, thinly veiled, but they went away a few months back.) (I wouldn't have voted to close (not immediately), but would have asked the OP to "clarify" his question by explaining what specifically he had difficulty with. But of course, before he did that several others would have jumped in with answers to his homework, so maybe it's all for the best that it ended as it did.)
    – Hot Licks
    Commented May 26, 2014 at 14:43
  • 6
    The OP needs a clairvoyant to answer his question. Clearly that's an off-site resource. Commented May 26, 2014 at 15:06

1 Answer 1

10

Let's look at the initial edit:

Title: consuming RESTful api using java

Content: how to call a put method in rest with following request body { "salutation": "Mr.", "firstName": "Tim", "lastName": "Cook", "title": "Chief Executive Officer", "level": "C-Level", "department": "Executive Office", "account": { "id": 2 }}

This looks like a bad question even at first sight, however, now it's a lot harder to read too. Suddenly, the fact it's "unclear what you're asking" is a lot less clear (although still plenty clear).

I'm siding with Bart here, probably the first guy saw it was a formatting mess and just clicked the first reason they found without giving it too much thought, then the 4 others came along and just thought it has to be closed and didn't bother reading it.

By all standards, it should have been deleted and closed, although "Unclear what you're asking" was the correct reason.

All in all, closing it and deleting it was the right course of action. The close reason is a mistake, where wood is chopped, splinters must fall.

11
  • "Where wood is chopped, splinters must fall". I like it. German origin? Commented May 25, 2014 at 15:04
  • @PaulDraper to be sure, I'm not sure - I've only heard it in the English form. Commented May 25, 2014 at 16:21
  • 1
    @PaulDraper Possible: Wo gehobelt wird müssen Späne fallen.
    – Bergi
    Commented May 25, 2014 at 16:59
  • "Unclear what you're asking" is not the correct close reason either.
    – Robert Harvey Mod
    Commented May 26, 2014 at 4:26
  • 1
    Of some interest, the first closer also wrote an answer, AND formatted the question.
    – AD7six
    Commented May 26, 2014 at 7:44
  • 2
    @Bergi To be exact, in German the idiom is "Wo gehobelt wird, fallen Späne".
    – dirkk
    Commented May 26, 2014 at 15:00
  • 1
    @RobertHarvey What is (if there is) the correct close reason in this case? (apologies if you stated it somewhere else on this page) Commented May 26, 2014 at 15:05
  • 1
    @RichardLeMesurier: The question looks on-topic to me. We ask and answer icanhazregex questions every day that are more specific than this. If it turns out that there's not enough information to answer it, then use "Not enough information to diagnose problem."
    – Robert Harvey Mod
    Commented May 26, 2014 at 15:44
  • @RobertHarvey I agree it may be on-topic, but I cannot tell what exactly is being asked, due to it being unclear or not enough info. But you are suggesting an off-topic reason for the close ("not enough information to diagnose problem"), instead of the on-topic reason ("unclear what you're asking"). Perhaps those 2 close reasons are unclear, or I have not enough info to understand them. Commented May 26, 2014 at 16:11
  • @RobertHarvey - I've opened a question about that last comment, so as not to hijack this guy's post. So feel free to discontinue this comment-discussion. If interested, here's the question meta.stackoverflow.com/questions/256216/… Commented May 26, 2014 at 16:20
  • 1
    @RichardLeMesurier: Nice question and good answers. Thanks for asking it. FWIW, I use "Unclear what you are asking" for "I don't understand your question," and "lacks sufficient information" for clear questions missing crucial details like error messages or problem statements.
    – Robert Harvey Mod
    Commented May 26, 2014 at 19:28

You must log in to answer this question.

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