r/cpp • • 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

177 comments sorted by

View all comments

Show parent comments

48

u/phadeout Oct 01 '21

I know this is a joke (and it's funny 'cause it's true), but I think another major thing is that it takes a certain kind of person to answer questions on SO. My guess is that kind of person is pedantic by nature.

Plus there are generally two kinds of questions: noob questions that basically anybody relatively-well familiar with C++ can answer, and questions that only rules lawyers can answer. The former get asked so much they are probably boring.

I have been writing C++ for 20 years, professionally for 10 years, and I still don't understand lots of stuff about it. I just ply my little shipping lane between the ports and stay well away from all the dark spots on the map.

(I also don't know enough to answer the tough questions on StackOverflow)

7

u/[deleted] Oct 01 '21

I know this wasn't your intention but you saying you've been writing C++ for years and still don't know everything about it makes my imposter syndrome simmer down a little.

13

u/[deleted] Oct 01 '21

[removed] — view removed comment

0

u/[deleted] Oct 01 '21

[deleted]

2

u/m-in Oct 01 '21

I just don’t commit most of the off-the-beaten track stuff to memory in terms of APIs. I let the IDE do the remembering for me. It’s quite good at it :)

1

u/[deleted] Oct 01 '21

Next time I'll mirror the post I'm replying to to avoid assumptions.

I wouldn't wanna know everything about anything nor expect it to happen, especially with something that constantly evolves.

It's more the fact someone with 20 years xp has openly said "I still don't know a lot" that is comforting because it makes the imposter syndrome lose an argument: "if someone with 20 years xp has gaps in their knowledge then it's definitely ok for me to have them too".

3

u/phadeout Oct 01 '21

Come sail the trade routes with the rest of us! There's a lot you can do without doing anything with template metaprogramming

3

u/pandorafalters Oct 01 '21

There's a lot you can do without doing anything with template metaprogramming

One of my favorite parts of metaprogramming is that you can read that in two very different ways.

1

u/[deleted] Oct 01 '21

There is also the issue that if they are on stack overflow then they aren't writing code. Language lawyers tend to not be able to write anything

3

u/phadeout Oct 01 '21

Writing code is too close to UB