-14

Recently, I have asked a basic question about C++ templates. Although, I have worked with other technologies, I know very little of templates and asked a question explaining my concern.

The question got as many as three lengthy answers and many comments, which means that people did find answering my question worthwhile. Nonetheless, the question got several downvotes.

I acknowledge that the question is basic. What I thought is that, what the community of advanced of programmers finds silly, the beginners find hard or not straightforward. This discrepancy led me to ask this question. How can we deal with such basic questions?

Use of template <class T> in C++ when declaring classes and functions

6
  • 4
    Depends on the quality of the question. SO users like questions that are pretty specific to a single issue. When you're a beginner you have so many questions about what you're learning (which is fine) but most of the time they'll be too broad, and questions that are too broad are off-topic on SO.
    – George
    Commented Jun 21, 2017 at 10:46
  • 7
    SO is welcoming to good, on-topic questions. If you are a beginner at asking questions, then the help center contains plenty of guidance on how to get started. If you are asking about being a beginner in a technology, that's got nothing to do with how welcoming SO is.
    – Martijn Pieters Mod
    Commented Jun 21, 2017 at 10:49
  • 10
    C++ is also a rather... special tag.
    – Pekka
    Commented Jun 21, 2017 at 10:54
  • 5
    I suggest closing them as too broad. If copypasta of the exact title into a popular search engine gives 'About 6,170,000 results', then it's a good signal that the question was not diligently researched before it was posted on SO :( Commented Jun 21, 2017 at 10:58
  • 2
    "I have asked a basic question about C++" Well there's your problem right there.
    – user1228
    Commented Jun 21, 2017 at 17:08
  • You should have asked in the Lounge. You would not get an answer, but at least you would have got a firework display out of it. Commented Jun 21, 2017 at 18:20

1 Answer 1

15

Preamble: It was suggested a few years ago that the users who regularly monitor the tag are quick to interact with questions (including voting, closing, and deleting them), according to their perception of quality. Although I have limited experience in other popular tags, I think this is probably an apt assessment. However, this is something that I see as a very good thing. Rather than discouraging it for the tag, it would be nice if we could encourage this same type of engaged behavior for other tags, too.


The question got as many as three lengthy answers and many comments, which means that people did find answering my question worthwhile. Nonetheless, the question got several downvotes.

I acknowledge that the question is basic. What I thought is that, what the community of advanced of programmers finds silly, the beginners find hard or not straightforward. This discrepancy led me to ask this question. How to deal with such basic questions?

Yes, asking basic questions (assuming that they comply with our other guidelines) is perfectly fine. However, as you've noticed, there is a bit of "buyer beware" that goes along with this. That is to say, basic questions aren't always going to be well-received by experts in the field.

If you ask a reasonable, coherent question, then it's highly likely to get an answer—probably even a good answer—but that doesn't mean the question itself will necessarily get upvotes.

The logic behind that is just the fundamental purpose of the voting system. Voting here is designed to rate/rank content in terms of its usefulness and interestingness. Top-voted questions are more likely to get put in front of experts, while low-ranking questions won't be. The voting public prefers to optimize for pearls, not sand. If I come across an interesting question, I'll upvote it to ensure that other experts will see it (either to answer it, or to learn something themselves). On the other hand, if I come across a question that is a snooze-fest, I'm probably not going to upvote it, and I might even downvote it, to save others from having to waste their time with it.

It is also instructive to hover over the vote arrows and read their tooltips. The downvote arrow says:

This question does not show any research effort; it is unclear or not useful

The upvote arrow says essentially the converse. Notice two things here: "research effort", and "useful".

Questions worthy of an upvote generally need to show research effort. If you ask a basic-level question, and don't appear to have done any research, then the question is subject to being downvoted. Now, before you object, let me say that I realize this assessment is subjective. But, again, the entire voting system is subjective because it just reflects the personal opinions of users with voting privileges.

Also, questions worthy of an upvote generally need to be useful. By the same token, if a question is not useful, then it is a candidate for downvoting. Beginner-level questions whose answers can be easily found in a textbook or other resource are arguably not all that useful. (When I say "useful", I mean useful to others, not useful to the person who asked the question. Obviously they'd find the answer useful.)

Is SO a welcoming place for beginners?

This issue has been debated at length previously, and will continue to be debated into the future as long as Stack Overflow remains around. But I have a philosophical problem with the question itself. What on earth am I talking about? Well, I'm not convinced that Stack Overflow should be "welcoming". What I mean is, I don't think that should be one of our goals—yet the question presupposes that it is. Now, don't misinterpret this to mean that I think Stack Overflow should be a place inhabited by rude, snobby assholes. I don't want that, either, even though I might sometimes be one of those people. What I mean is, since we aren't a social network, our focus is not and should not be on users. So while we don't want to be unwelcoming, we don't necessarily want to be welcoming, either. The focus here is on content. Everything else is secondary. Please don't take any actions that are taken on your posts personally. They aren't directed at you as an individual.

Further reading: How can we improve the SO experience for very young programmers?

2
  • "Please don't take any actions that are taken on your posts personally. They aren't directed at you as an individual." So when a person downvotes multiple questions he found on my profile for no reason, isn't it kind of personnal ? (Okay that's a rhetorical question) I mean I get that the community is about content, but sometimes you just have plain douchebags.
    – Tofandel
    Commented Jun 26, 2017 at 2:17
  • 1
    And the community has rules—and even automated systems—to deal with douchebags, @Tofandel. So I'm not really sure what your point is. Douchebags are equal opportunity offenders; they don't just target new users.
    – Cody Gray Mod
    Commented Jun 26, 2017 at 10:29

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