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

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

36

u/Ir0nh34d Oct 01 '21

Cunningham’s law coined by Ward Cunningham aka founding father of the wiki

70

u/[deleted] Oct 01 '21

[removed] — view removed comment

77

u/gracicot Oct 01 '21

NOOO!!!

You see, C++ is a multi paradigm language. It has been created by Bjarne Stroustrup in 1982, with the Cfront compiler. This was a replacement for his initial language that was dubbed "C with classes". Then the language was formerly standardized in 1998. The thing with the class part is that most people think it's just to add object oriented features in C, but I'd say one of the main paradigm you'll see around is generic programming, powered by templates, which is a quite unique feature compared to other traditionally object oriented languages. A good example of generic programming is the algorithm library of the standard template library (STL) that was created by Alexander Stepanov as an efficient and lightweight library for containers and container manipulation and many other things. And C++ also support functional programming as well, with the const feature and the addition of lambda functions. Of course, you can also do functional programming through template metaprogramming, which was revolutionary at the time, but constexpr tend to replace it. One of the first example was presented by Erwin Unruh, by making a program that printed all the prime numbers in compilation errors.

Now that you know all of this STOP BEING WRONG! And don't you dare answering a question with something as wrong as you just written!!!

22

u/christian-mann Oct 01 '21

Many people -- even those that learn C++ today -- are still stuck in a pre-C++11 paradigm. The language changed immensely with that version.

0

u/[deleted] Oct 01 '21

[deleted]

2

u/[deleted] Oct 01 '21

So are you saying they should have read more books?

6

u/[deleted] Oct 01 '21

Yes. Modern C++ is a whole new language compared to what I learned back in '96. Can't say I miss any of the old stuff though.

7

u/GhostfaceChiillah Oct 01 '21

<Insert xkcd comic of someone being wrong on the internet here>

4

u/Fazer2 Oct 01 '21

Maybe OP has already done that with this post ;-)

5

u/Artemius_B_Starshade Oct 01 '21

I'll try to remember that! 😂

-3

u/[deleted] Oct 01 '21

That's just simply not true.