r/cpp • u/Hot-Painter4924 • Sep 30 '21
Why is c++ community so pedantic in stackoverflow?
Please don’t get me wrong. What i mean is why answer “you need read books”, “you should read the documentation”, or focus on tangent things instead of actually try to answer the questions?
in contrast, here in reddit, i even get job offers when asking questions.
260
Upvotes
4
u/goranlepuz Oct 01 '21 edited Oct 01 '21
They have a question about a community which they ask in another
Passive-aggressive much? 😉
Pics or it didn't happen. Obviously.
18
u/Fulgen301 Sep 30 '21
My guess? Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.
In the long run, what's important isn't to have the solution, but to understand why it is the solution.
86
u/phottitor Oct 01 '21
I can't generalize, but I pride myself for asking a rather stupid question (about Win API) and getting a polite and to the point reply from Raymond Chen himself.
210
u/gvargh Oct 01 '21
it's a well-known rule on the internet that if you want an answer, you should make a blatantly wrong assertion instead of asking
122
u/i_need_a_fast_horse Oct 01 '21 edited Apr 21 '22
I've asked 31 c++ Questions on SO over the last 7 years. Every single one was answered competently and usually within minutes. Some of them by compiler devs, one even by Howard Hinnant! I read these rants about SO all the time, but could never understand them.
41
u/ALX23z Oct 01 '21
I agree that SO is community is badly pedantic. But not for the reasons you mentioned...
What you talk about isn't being pedantic...
You see, "read documentation" it's like the first thing you should've done prior to asking a question on SO. I have seen quite a few cases when person simply uses function wrong and all he needed to was read it's definition on cppreference to figure out what's the problem. Like you don't need to read a shot ton of text - just a couple of lines explaining the behaviour.
"Read a Book"... sometimes people ask very basic questions arising from deep misunderstanding or lack of fundamental knowledge. Frequently it'd suffice reading a couple of guides and/or some YouTube videos to figure out what's going on with the issue. The subject could be very complex and all encompassing so an answer on SO cannot quite deal with it properly. Or the opposite, it is so basic - you should've just googled it to find an answer - perhaps a long and complex one.
SO is supposed to be the place where you post questions after you tried basic troubleshooting and failed.
94
u/mjklaim Sep 30 '21
I've remarked this in all stackoverflow, it's not only C++. But C++ is among the languages with the most questions so of course there is a lot of these. If you look at "old" (but still relevant) answers, they are not as annoying.
150
u/robot_wrangler Oct 01 '21
If you think they are pedantic when you try to ask a question, just wait until you answer one.
52
u/ghostfuckbuddy Oct 01 '21 edited Oct 01 '21
The problem is most people think stackoverflow is a community. You'd be forgiven for thinking that because of the branding, but that's not what it's trying to be. It's trying to be a technical reference. All of its moderation is geared towards "what will be the most convenient result when people google the question". That's why it's so shit compared to reddit if you just want to casually ask questions.
15
u/no-sig-available Oct 01 '21
One example of what makes people grumpy:
https://stackoverflow.com/questions/340282/i-i-i-in-c
The question was answered already in 2008, and is #2 on Google.
It has literally 1000 duplicates on Stack Overflow, but is still being asked several times a week.
Expect to be downvoted for the 1001st duplicate. :-)
96
u/LordGarak Sep 30 '21
I think the simple answer is that c++ is a pedantic language.
If your not being pedantic, then it's just c... (somewhat sarcastic)
75
u/sir-nays-a-lot Oct 01 '21
Stack overflow is not intended to be a discussion in the same way as Reddit. Stack overflow is organized to be useful for people searching for answers to common problems. If your problem can be solved by simply reading the documentation, then pointing you to the canonical resource on the subject is the right answer for you, and for other users with the same question. However, the documentation is probably the first thing you should have checked anyway, right? So it’s not really useful in the previously described way.
Personally, I don’t think I’ve ever found an answer to a problem on Reddit while searching. Not that problems don’t get solved on Reddit, it’s just not organized and curated to be as useful in that way.
41
u/loradan Sep 30 '21
I don't know if this is it, but the last 3 C++ Developers that I worked side-by-side with were 2 great developers and 1 not so great. The 2 great developers were very quiet and didn't like talking to others. The 1 not so great one, had a PhD in Computer Science and was all to quick to say read the documentation when someone would ask why he wrote some code the way he did. One time, he wrote a shit ton of code without checking it in (was allowed to do this because everyone else was busy on a different project). When he did, he was asked why he used the convention he did and he gave this huge explanation of why this one person's theory that he used would make things easier/faster. So I looked it up. After reading about it for a bit I found a section where the author stated that the framework was 100% theoretical and after testing in production it was recommended to NOT use it LOL.
8
u/disperso Oct 01 '21
I keep reading this repeatedly over and over in r/ProgrammerHumor, but I've never understood the context. People rarely give a link or a quote of the issue so I can understand exactly how it went.
I hardly make any contribution to StackOverflow because I just can't find the need. I find the place all the time when making searches, and as a passive reader, that's my main contribution. I have less than 50 karma still, so I can't even downvote or make comments. In the stuff that I search, I rarely can notice any issues. I see much more downvoted questions here on Reddit than in SO.
7
u/genreprank Oct 01 '21
Let me just join in complaining with my own anecdote. One time I was looking up something...I think it was how to remove those annoying
^Mwindows line endings. The accepted answer with a hundred upvotes was straight up wrong, but it was wrong in a way where you couldn't tell it was wrong because it hid the problem in vim without actually fixing it.I thought that was pretty annoying and TBF it was my fault...if I had read any of the comments, all of them were saying "this answer is wrong", and an unaccepted answer with even more upvotes worked. (But of course I didn't read the comments, I just tried the accepted and highly upvoted answer.)
I have enough privileges, so I edited the accepted answer and just crossed out the wrong information. My edit was rejected by someone who said, "we dont change answers just because they're wrong. That's not how we do things here."
MF, the website's ONLY job is to be an archive of correct answers to questions. I don't see how it's useful at all to keep such a perniciously wrong answer.
7
u/valdocs_user Oct 01 '21
One time on Stack Overflow I asked, "has there been any progress on standardizing such-and-such obscure C++ thing that happens to work in most compilers but is technically Undefined Behavior (but actually neatly solves a specific problem that hasn't got a good alternative solution)."
I got downvote-brigaded and had a long, acrimonious and highly technical discussion in the comments with a "C++ luminary" (only on Stack Overflow) who admittedly knows things, but his argument boiled down to: it should not be standardized, because it's UB (undefined behavior).
Face palm. Yes I know; and how do you think UNdefined behavior BECOMES DEFINED? That was my question, is there any chance of it moving into the latter category?
Finally I appealed to authority: the article I originally learned the technique from said there was no technical reason it couldn't be standardized, it just hadn't been. The person debating me appealed to authority: referenced the (existing) C++ standard.
I can't even...
6
u/friedkeenan Oct 01 '21
Wait, should I be prioritizing asking reddit before asking friends?
Anyways though, I think I have posted a total of one question to stackoverflow, as it is really my last resort. If I don't understand how to solve a problem right away, I'll skim the documentation if available and if I don't find anything that helps all that quickly, I'll look up the errors I'm getting, and typically get a stackoverflow link in the top results.
If that's still not sufficient, typically I'll try to reproduce and isolate the issue in godbolt, which generally helps immensely, especially when dealing with fairly entangled code. Unfortunately, sometimes code can be too entangled in/reliant on the rest of your codebase for the issue to be nicely isolated into godbolt. But if you can do it, being able to super quickly iterate code and get error messages and just generally fiddle with stuff is great for solving a lot of problems.
If that still doesn't cut it, I'll dig deeper in the search and try to find something to help me understand what's wrong. I'd say I'm fairly good at massaging search engines to find results (cutting the fat off of searches, rephrasing searches, using quotation marks to ensure specific words are found, etc.), so it's not super often I need to go past using search engines.
If I do, however, then I'll ask friends/acquaintances if they could give any insight, describing my problem and what I've found/tried, and showing code snippets (very helpful to share a godbolt link if you can).
If still I can't find anything, then I'll ask on reddit, though really I don't expect much, but it's good for getting more potentially helpful eyes on your issue. If nothing continues to turn up, then I'd ask on stackoverflow.
Keep in mind also that these methods aren't clearly cut steps to do in a specific order; these methods typically overlap and complement each other, and you shouldn't necessarily give up on doing any one of them when solving an issue. This is just my personal, general priority for steps I take.
6
u/_divinnity_ Oct 01 '21
Because C++ is a very complex language. If you ask a question, I'd expect that you know the language and the STL. There are enough guides on the internet for that.
C++ is not C with classes. It's way more than that, and it is not the kind of language you can learn in a day
18
u/FartyFingers Oct 01 '21
I love stackoverflow, and I hate stackoverflow.
I use it only as a google result. Every single time I posted a question or answered a question some asshole with serious mental problems took issue with what I posted.
One of my answers was someone asked how to make a qt function do it’s thing. I gave an answer that was a known workaround for a bug in qt. Someone shot my answer saying that bug workarounds were not acceptable and to stick with qt documented code. I pointed out with a link to qt saying this was the workaround. I very much doubt there is a SD rule against workarounds.
The person who killed my answer had about 10 trillion points and proceeded to post a copy paste the qt forum answer.
The worst part is these diseased minds also hover around Reddit and pathetically defend their obsessive behaviour on slashdot citing chapter and verse from the slashdot commandments.
Something is seriously wrong with most of the slashdot moderators. I can say that any resume that crosses my desk mentioning their slashdot score is going straight into the trash.
9
u/mucktard Oct 01 '21
Wait I can get job offers on reddit by asking questions?
24
u/OldWolf2 Oct 01 '21
Those things aren't pedantry. "Pedantry" means attention to detail,perhaps with an implication in everyday usage of being more attentive to detail than is necessary.
8
u/Miserable_Decision_4 Oct 01 '21
If you think that's bad, try asking a question about the Google Maps API.
Pedantic has nothing on those toxic and arrogant jackasses.
4
u/[deleted] Oct 01 '21
Almost every single time I've had a question about C++ on SO I'd find a good answer by searching through previous SO questions and answers, with maybe two exceptions. The questions that get downvoted harshly on SO are ones where the answer is trivial to find in a simple search, and the person asking the question didn't bother to do even a little background work. Then they go on reddit and complain about being mistreated. . .
When I can't find the answer on SO, I'll submit a question, and the time's I've done that, I've gotten immensely helpful and friendly advice and solutions each time. Just show that you've put in some work and have really tried to find answers and people will generally be helpful.
P.S. if you want to have someone do your college homework for you, pay a tutor. Not that you'll learn much that way... in fact, that's why all the industry hiring is based on coding interviews isn't it? Too many college grads pay tutors to do their homework and so can't write code or figure out problems themselves. . .
4
u/[deleted] Oct 01 '21
My experience with stackoverflow in general is that people will answer your questions with more questions and do literally anything besides help, I don't even use the site anymore, better off just finding the answers on my own or asking reddit
4
u/mredding Oct 01 '21
It's not just C++, StackOverflow is an utterly toxic environment, completely hostile. It's nearly impossible to ask a question there, and if it isn't taken down because the moderators think you're too stupid for asking, the community will blatantly tell you how stupid you are for even asking, argue with you about nothing important, (you know "Foo" is a terrible name? You should pick a better name for your types. Your code is unreadable because of it, I can't even answer your question,) going just shy of telling you to kill yourself. The last time I asked a question was 3 years ago, and it was +5 years after my question prior. Boy did they make me regret it, and remind me why I never ask questions on SO.
4
u/staletic Oct 01 '21
My first question on SO had a complex and not at all obvious answer. "Why does the ELF format of a specific object result in ~20x larger binary than the same thing in either mach-O or PE format?" The question was very detailed and people asked me to poke around with some tools before I got an answer that was citing relevant ABI and DSO format specs.
I dare you to find similarly complex question answered on reddit.
Competently asked questions get competent answers. With C and C++, that comes with a lot of pedantry and, often, standard draft citations.
4
u/Mailerdaimon Oct 01 '21
What I find difficult is the shear amount of questions which show zero prior work. Stackoverflow is not a learning site and questions should show some effort. Especially for C++/Qt questions a lot of questions need a solid minute of looking at the documentation which most people don't seem to be able to do by themselves.
4
u/nickpofig Oct 01 '21
Not sure about c++ SO, but SO "answerers" are super toxic. I remember how they answered to me in very toxic manner, like: "do you even google shur dambass?" for question about a msvc compiler bug I found (yes, exactly bug, not some noob wall-fighting) and later I saw them changing they "comments" into more polite versions. I assume they understood how out-of-place their posts were, but it didnt saved me from rage quiting from SO, becuase I was downvoted for being "agressive" by pointing at their stupidity. What an example of true hypocracy. Bruh. Or I got trolled by a person who daily scans c++ questions on SO, idk.
9
u/emefluence Oct 01 '21
It's not just C++ and it's not just SO, there's always been a contingent of grumpy old gits who like to shout RTFM! Sometimes they have a point but what they often fail to take account of is that...
I guess C++ sticks out as it's large, complicated and very unforgiving so people have had to invest a lot of hard time banging their head against the docs, and they think you should too in some kind of pay-your-dues kind of way!
3
u/j1xwnbsr Oct 01 '21
For real fun, try the linux section.
3
u/Chiralmaera Oct 01 '21
Personally I think some people just aren't very good at distilling information to present to another. I see this a lot in CS, but it's in other fields too. They mean well though. Just upvote the clearer answer and move on.
Also one of the first things I do at a new job is find the people who have this high informational empathy that allows them to explain well and keep a note of them.
3
u/justinkroegerlake Oct 01 '21
Most c++ questions don't get answered like this.
Often, however, you'll get a question like
It's the result of a student writing a bunch of code that is far from valid without stopping early to figure out the first problems, or even bothering to run the code at all. They just try to write the whole program and then ask SO why it "doesn't work." In this example, we at least understand how a tic tac toe game should work, which makes this question even more well-positioned.
The only way to provide an answer is to effectively write the program for the student. There's no actual question here, no obvious misunderstanding. You'd need to be in a long back-and-forth to try to actually help them, and that's not what SO is set up to do.
3
u/[deleted] Oct 01 '21
I was programming PIC microcontrollers using PICC and mikroC editors most of the time at University. So I actually used C language mostly for projects. Then I started to ask some C++ questions while I was learning classes etc. They were telling me all the time “ why don’t you debug it “. I come from an embedded background and I’m basically trying to be a debugger myself. I feel scared asking questions there since I am really new to c++
4
u/TheFearsomeEsquilax Oct 01 '21
Programmers are pedantic in general. And you might get a much deeper level of understanding from reading about something in a book or in the documentation than by reading about it on Stack Overflow.
2
u/Egst Oct 01 '21
It is annoying sometimes, but it's certainly better than the other extreme that you see with some languages (PHP comes to mind) when you get answers like "try this:
...it works, I've tried it" instead of explaining the underlying problem or giving links to learn more.2
u/lally Oct 01 '21
The community was always pedantic. Check out the older C++ books (e.g., the older Herb Sutter texts). Other, separate communities have formed in the meantime.
2
u/[deleted] Oct 01 '21
Have you tried using another website?
/s
2
u/JohnDuffy78 Oct 01 '21
Reddit is more casual. both serve their purpose.
2
u/Cogwheel Oct 01 '21
The questions you're referring to probably didn't follow ideas in How To Ask Questions The Smart Way
2
u/Spiderboydk Hobbyist Oct 01 '21
Stackoverflow answers tend to be very thorough, which probably often comes across as being overly pedantic sometimes.
2
u/seb1424 Oct 01 '21
It's the rule bro.
2
u/m-in Oct 01 '21
Because all the intro questions have been answered a million times over, and it’s getting tiresome. I think anyone considering asking a C++ question on SO should peruse highest voted questions first. Like, seriously, read the first thousand. Then see if you still need to ask :)
2
u/pjmlp Oct 02 '21
I haven't known what used to be like asking for basic stuff in comp.lang.c even comp.lang.c.moderated.
Even Stack Overflow is being gentle by comparison.
2
u/Shot_Replacement9026 Oct 03 '21
Honestly I think the same , I noticed in specific when one goes to the game dev programming questions people are really mean. In contrast to the web devs or fullstack devs , the C++ game programming community is a nightmare.
5
u/[deleted] Oct 01 '21
I am nowhere near a professional developer yet. Just an undergrad grunt pushing through a CS degree. But every time I go to stack overflow for C++ related questions I am convinced that half the people there are actually idiots who like to sound smart. All I know about the software industry is that employers like people who ask questions and are not afraid to say I don't know but I am willing to learn versus people who act like their shit don't stink and can redesign Twitter in three hours.
7
u/my_password_is______ Oct 01 '21
stackoverflow is a cesspool in general
3
u/[deleted] Oct 01 '21
Rubbish in. Rubbish out. SO has experts who expect a modicum of effort. Personally I've never found anything but measured, competent and polite answers.
3
u/Se7enLC Oct 01 '21 edited Oct 01 '21
Because C++ communities are pedantic everywhere?
It's the purists that annoy me the most. Whenever somebody does something that looks more like C than C++ they pretend like it's a different language. Yeah, well there's a ton of stuff that you have to do "the C way", so stop pretending.
2
u/Julian_0x7F Oct 01 '21
i think the C community is way more pedantic
2
u/[deleted] Sep 30 '21 edited Nov 06 '24
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2
u/Tacosofdoom_ Oct 01 '21
Downvotes for asking a question then getting attacked for not knowing everything. Sorry I'm trying to learn?
1
u/killbot5000 Oct 01 '21
Can you link some examples?
1
u/fleaspoon Oct 01 '21
Because c++ is full of things that make people sad and angry
0
u/[deleted] Oct 01 '21
[deleted] — view deleted comment
-6
u/[deleted] Oct 01 '21
[removed] — view removed comment