3

This is regarding my recent question, How can I find the bridge device name for my tap adapter in C (Linux)?. It was placed on-hold, with the reason given as off-topic.

(Please note that I have reworded the question to hopefully make clearer.)

I'm looking for how to programmatically get information about a network interface on my Linux system using C. I have searched high and low for an answer, or least something pointing towards an answer. It appears that the information I am seeking is not a common problem; however, I believe that makes it even more on-topic and valuable for Stack Overflow, so that future people seeking a similar question might find the answer.

If my question is off-topic, why are the following questions not off-topic for Stack Overflow?

And for a variation on the theme, but it still amounts to a similar approach,

32
  • 1
    Because one user didn't understand your question, and then mob voting happened.
    – CodeCaster
    Mar 24, 2016 at 23:32
  • 1
    @CodeCaster did you read the original revision (the version that was closed)? It's a code request, or a "how do I start", etc. "What I've tried" came after the closure. You can argue that maybe that's still on-topic (like the mostly-old questions listed above), but that's not the same as mob-voting by reviewers confused by the question.
    – Paul Roub
    Mar 24, 2016 at 23:36
  • 1
    @Paul anyone familiar with the subject knows that the code is irrelevant. The original question, in order to not be closed with the stated reason, could only contain "What to provide for ioctl(...)?" as relevant code. I'm not saying it's a particularly perfect question, but the close reason makes no sense at all.
    – CodeCaster
    Mar 24, 2016 at 23:38
  • 1
    I'm familiar with the subject, I disagree, and I voted to reopen the edited question. I'm sure there's a No True Scotsman objection to all that, but I'm walking away now.
    – Paul Roub
    Mar 24, 2016 at 23:45
  • 1
    Related Analogy Time
    – Braiam
    Mar 24, 2016 at 23:49
  • 1
    @Paul what relevant code could be displayed here? It's like "How do I get the current console front color?", where people are saying "We can't answer that until you show your console writing code".
    – CodeCaster
    Mar 24, 2016 at 23:53
  • 2
    @Braiam then perhaps post somewhat more constructive comments than a three-word one from which it is not clear what point you're trying to make. What do you want to say with that comment and how does if relate to the question being discussed?
    – CodeCaster
    Mar 25, 2016 at 0:03
  • 2
    The [c] tag is funny that way, [c++] has it as well. The kind of questions asked are always either homework or pure language questions. Actually using the language to solve a practical problem is never done. Nobody mentions their compiler and operating system. Anybody that stumbles in will have to deal with Olaf, god have mercy on your soul when you try to use a C api in a C++ program. Really rather best to avoid the tag completely, consider [linux] instead. Mar 25, 2016 at 0:03
  • 1
    @Braiam no, some pictures explaining some close reasons do not explain why you thought that the discussed close reason was valid for the linked question.
    – CodeCaster
    Mar 25, 2016 at 0:26
  • 1
    @Braiam Fine, I'm open to learning. Searching SO for "get ip address interface linux c created:1y". 10 results. Only 5 remotely related or similar in topicality to my question. 4 of those have no code to indicate what they tried. Regardless, the reason given for putting my OP on-hold was "off-topic". Again, based on the examples I cited (and even the 10 results in this search), what is the standard for on-topic that my question failed?
    – scottbb
    Mar 25, 2016 at 1:06
  • 1
    @scottbb: regarding the "standard for off-topic", there should have been a sub-reason that is in fact more important than that designation, because around here "off-topic" doesn't actually mean what it says (see also Shouldn't "off topic" be only about...off topic?) Unfortunately, I don't know what that sub-reason was and I don't believe it's possible to find out now that the question has been reopened.
    – jscs
    Mar 25, 2016 at 1:14
  • 1
    @JoshCaswell thank you, good references. I certainly thought my question fit in line with the "Questions asking for code must demonstrate a minimal understanding of the problem being solved" standard. Regardless, even if I stumbled a bit, I learned, edited it to be clearer / concise / whatever was required to achieve my goal: the question was reopened.
    – scottbb
    Mar 25, 2016 at 1:24
  • 1
    @Braiam Thanks for the discussion. Recap: I agree with the analogy; I certainly strived for the point it/you made. I tried to keep the OP short, but explain enough context so as to not have it closed because "unclear what you're asking". I didn't have any code to show where I was stuck, precisely because I know my efforts to find an answer to my problem weren't pointing me anywhere near a solution. I appreciate the constructive discussion. Thank you.
    – scottbb
    Mar 25, 2016 at 1:30
  • 3
    @CodeCaster that is not good enough. If you are going to label/libel SO users, you should have the guts to name them. If you cannot put up, you should shut up. This 'mob voting' accusation has been made before, the implication being that a set of users do not read questions and follow votes only. No actual evidence was produced before, and I suspect that there is none now. Mar 25, 2016 at 8:58
  • 2
    @CodeCaster I am a room owner of the SOCVR chat room and I can confirm you that this question was not mentioned in the room.
    – Tunaki
    Mar 25, 2016 at 9:26

1 Answer 1

4

Your question has been reopened in the meantime, but let me give you my opinion on what happened.

I find your question very clear. It is to the point, and it contains enough information for someone to answer it. It can be answered by someone who has done this before, or by someone who has experience with the Linux socket and networking APIs, or by someone who can read manpages. Another viable answer would be "You can't do this", if that is the case.

So the chosen close reason, which was:

Off-topic: Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.

Was entirely inappropriate. There was no code to show, you were asking what code to write to do this. The thing you're trying to do is query the OS for information by using OS-specific API calls.

That close reason would make just as little sense for a question like this:

In C#, how do I get the current foreground color for the console?

You cannot show any relevant code for that, and the answer would be "You can obtain it through the getter of the Console.ForegroundColor property".

So in my opinion, the close-voters did not pay enough attention to which close reason they picked, and the question did not warrant being closed in the first place.

I don't know how the close-voters got to your question, maybe it was linked from elsewhere or they stumbled upon it in the review queue, but to them I would like to say: please defend in an answer here why you think this question warranted that close reason, or otherwise, try paying a little more attention to which close reason you think you need to pick - if any.

5
  • 2
    As one of the initial close voters I fully agree with this answer. I got the question the queue. I'll pay more attention / be more skip happy in the future.
    – rene
    Mar 25, 2016 at 10:29
  • 1
    @rene alright, thanks for owning up to it. I did not mean to offend the SOCVR chat in any way (see the comments under the questions), but it seemed like it was close-voted by many people in a short time without paying too much attention to the question's contents.
    – CodeCaster
    Mar 25, 2016 at 10:30
  • 6
    I don't mind if you question actions of the SOCVR and please ping me or any member if you suspect the room is involved. My philosophy with the room is to moderate posts to the best of our abilities within the rules, transparent and in cooperation with the meta crowd. We are active and with that we make mistakes. But we are also happy to help if moderation of posts is questioned.
    – rene
    Mar 25, 2016 at 10:40
  • 1
    I don't entirely agree that the close voters weren't paying attention (although certainly possible they weren't). I have unfortunately seen this close reason used to close "No Research" questions. While it isn't getting close to rampant misuse, it is the new "minimal understanding" close reason Mar 25, 2016 at 11:47
  • 2
    Looking at the timeline, 4 of 5 votes came from review. Mar 25, 2016 at 12:39

You must log in to answer this question.

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