r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

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?

11

u/[deleted] Jan 28 '23

I.. uh, well.. I like 98 better ( I said it!)

It’s the version I first learned, and I had many segmentation faults with it. We bonded

4

u/outofobscure Jan 28 '23 edited Jan 28 '23

I have no love for 98, for me it‘s either the simplicity of C or even ASM that i can appreciate, or the multi-paradigma nature of modern C++ that did away with a lot of the clunky syntax limitations and ambiguities of earlier versions and made it much more expressive and easier to write safe code without any runtime overhead. just one of many things, but i wouldn't want to give back constexpr for example, or lambdas, or auto, or perfect forwarding, or the many tiny improvements to std, such as string having a well defined .data member since 17. the oversights and defects in 98 are too severe to cling on to it.

→ More replies (1)
→ More replies (1)

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.

2

u/[deleted] Jan 28 '23

I’ll be honest, I took one look and went running to C#!

5

u/not_some_username Jan 28 '23

C++ 17 is good ( most of the time)

2

u/MChainsaw Jan 28 '23

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

Oh hey, that's around the time I started learning it! Funny that.

→ More replies (9)

20

u/Strostkovy Jan 28 '23

I use C often and rarely C++, but one look at C# and I wonder what the poor language did to deserve what they've done to it.

30

u/[deleted] Jan 28 '23

All the core constructs are there, just additional safety. The CLR provides an FFI for languages targeting the runtime to utilize and C# even has pointers as well. Some people complain about generics and it isn't until they want to avoid duck typing and more that they realize generics are important. Everything else, optional syntactic sugar.

13

u/Strostkovy Jan 28 '23

It's just always so verbose, and has periods in words and that makes me scared

30

u/[deleted] Jan 28 '23

Dot operators increase readability, what do you not like about them?

13

u/gbot1234 Jan 28 '23

I.just.don.t.like.them.Sam.I.am.

→ More replies (14)

5

u/the_one2 Jan 28 '23

C# doesn't have RAII and it makes me sad when I use it. (yes, I know about using, it's not the same at all)

2

u/tesfabpel Jan 28 '23

and as someone else said: finalizers may run on a different thread!

I've had to debug some OpenGL issue once and it came from this sh*t (it was a class wrapping a native C++/CLI class who interfaced with OpenGL)...

5

u/dav1d_23 Jan 28 '23

Mmmmm no OS is C++, right? Windows and Linux are C based, no C++ AFAIR

18

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

Mmmmm no OS is C++, right?

Lemon OS and others are dominantly C++. You can even develop an OS using C# with the COSMOS SDK as well.

Windows and Linux are C based, no C++ AFAIR

The kernels and drivers are C and some assembly. For Windows, native APIs are mostly authored in C as well. System programs are then developed with C, C++, and .NET. Utilizing OS services doesn't really translate well with OOP, hence why a lot of APIs are developed with C (outside of originally being written in C) since they do not need object-oriented APIs.

2

u/dav1d_23 Jan 28 '23 edited Jan 28 '23

I think Windows has its own Object paradigm, so that's not really the reason IMHO. In my previous company we also implemented macro-defined OOP (in some sense) because we did not want C++. I'm not trying to say C++ is bad - but I personally quit it when template madness started, and happily never looked back. Again, personal experience :)

Edit: I also admit I did not have to use that. Please don't take my previous comment as another pl war measage or something :)

→ More replies (1)
→ More replies (16)