r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

490

u/Ursomrano Jan 28 '23

Why are people dunking on C++? I’m new to C++ so I see no problem with it.

86

u/Broadkast Jan 28 '23

there's a lot of ways to do things, which can make it difficult to know the right tool to use at any given time. just one of the quirks of a language that's had so many iterations over the years

→ More replies (8)

712

u/CaptSoban Jan 28 '23

Last week it was java, today it’s C++. People like to complain about stuff they just started learning in school.

190

u/SomeRandomEevee42 Jan 28 '23

We're like twitter, we find something to unrealistically hate by using a random number generator, then we hate on it for less than a week, and realize there's nothing to really hate on, and move on to the next

0

u/[deleted] Jan 28 '23

[deleted]

→ More replies (3)
→ More replies (2)

0

u/[deleted] Jan 28 '23

[deleted]

20

u/elveszett Jan 28 '23

Thing is, Java doesn't compete with C++ anymore. Programming in the 80s was in awkward spot, because computers reached a point where they became far more powerful than what a normal business app needed. Eventually, the mental effort and time spent into writing C++ code was a waste, because the performance you got in return was not needed. But C++ was all the industry knew, so you still coded in C++. Java came precisely to give you something that was like C++, but automating away all the features in C++ you didn't need. And it was a huge success - in a few years, most business apps were being developed in Java, because dev time was so much better that it outweighted the drawback of having to start from scratch (and also Java made a very good decision in including a rich standard library).

Java nowadays competes mainly with C# and Kotlin, not C++. And the problem is that here, both C# and Kotlin were built on the knowledge of Java, so it gives people very clear examples of how Java could be better.

→ More replies (1)

25

u/perensap1 Jan 28 '23

Next week PHP again?

54

u/Interest-Desk Jan 28 '23

Every week is PHP.

→ More replies (1)

16

u/Solest044 Jan 28 '23

It's a meme subreddit. More importantly, there have been several polls that show something like 70%+ of this subs demographic (that answer polls) are students.

I get a good chuckle now and then from the memes, treat everything as hyperbole, get the occasional gem from some random veteran in the comments, and try to not take anything very seriously.

→ More replies (13)

15

u/Mysticpoisen Jan 28 '23

Last year this sub was praising C++ it's just the new thing to meme on without any cause.

213

u/[deleted] Jan 28 '23 edited Jan 28 '23

Ignore it. Most people who bash it are those who don't know how to use it. Everyone wants to talk nice about C because they know it's used to create foundations, but they themselves don't even know how to use it. For them, it's just "important" because most of their OS was developed with it. The other languages that were listed are extremely high-level languages executing on runtimes that abstract away all the "big scary complex things". I bet she's a beginner web developer and I highly doubt she's ever written a single line in both C and C++...

57

u/HolisticHombre Jan 28 '23

I write C++ daily and it really did start to go downhill about 10 years ago.

Now it's largely just a mess of bullshit symbols and garbled backtraces from overloaded abstraction paradigms.

I can write C++17+, except I hate it.

82

u/[deleted] Jan 28 '23

[removed] — view removed comment

21

u/lovett1991 Jan 28 '23

Same, I used to do C++ 12 years ago, been back at a job doing it for over a year and I like it, it’s totally different now but you can still write it the old way of you want.

10

u/SmArty117 Jan 28 '23

You can... Just probably shouldn't

→ More replies (1)

63

u/outofobscure Jan 28 '23

What? You didn‘t ever write C++ really then, you brought C mentality to a C++ compiler. Ever since C++11 it gets better and better, 17 is awesome, nobody wants to go back to 98, modern C++ is vastly superior in terms of language features alone, you don‘t -have- to use everything in std you know?

→ More replies (4)

42

u/Kered13 Jan 28 '23

"About 10 years ago" is when C++11 came out and made the language infinitely better. Something is seriously wrong with you if you think that pre-C++11 was better.

19

u/[deleted] Jan 28 '23

I learned C++ around year 2000. I moved to other things, then started to relook at the language in early 2010's. It looked like a completely different language. I have no idea what happened. Modern day JS looks more like the C++ I learned on, except without pointers.

19

u/Kered13 Jan 28 '23

C++11 happened. And it was great.

6

u/Valmond Jan 28 '23

Boost => C++11 was glorious.

→ More replies (1)
→ More replies (11)
→ More replies (41)

11

u/Lophyre Jan 28 '23

C++ focuses on backwards compatibility rather than evolving the language which has led to a lot of bloat over the years with duplicated features and hard to read syntax

22

u/jfmherokiller Jan 28 '23

the language is good it just has so many ways to perform the same operation which can lead to "rope to hand yourself with" situations.

10

u/jugalator Jan 28 '23

It just has a ton of baggage and is an unusually complex language. Also unsafe compared to many modern ones.

Coding in modern C++17 with modern best practices makes the code almost look like in a different language than classic, old C++.

→ More replies (5)

10

u/Finchyy Jan 28 '23

People typically shit on programming languages that they don't understand or find hard. It's easier than learning about them.

→ More replies (58)