r/ProgrammerHumor • • Oct 17 '26

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.6k Upvotes

524 comments sorted by

View all comments

23

u/YouAreMyFire00 Oct 17 '26 edited Oct 17 '26

Im a beginner and managed to learn to understand C# and Java and now I can build simple CRUD app.

So i kinda don't get the hate/war between C and C++ here...

Anyone can explain simply what's the hate here?

213

u/SherifDontLikeIt Oct 17 '26 • Bravo Heartwarming Popcorn

It's a class war

53

u/VerdiiSykes Oct 17 '26

Can't believe C++ would be the object of such conflict

20

u/pm_me_yo_creditscore Oct 17 '26

I'm not the type to point fingers.

→ More replies (1)

34

u/plainoldcheese Oct 17 '26 • Heartwarming

Here's an award ๐Ÿ… (I'm not spending real money on reddit)

6

u/ksobby Oct 17 '26

I love you in a very platonic, autistic kind of way.

52

u/crozone Oct 18 '26

C++ is an insane bastard of a language. It is not correct say C++ was designed. It wasn't. It has evolved out of the primordial soup that was "C with classes", and slowly inhaled and adopted every possible language feature under the sun, like some sort of Lovecraftian horror that copies and evolves on every contact with a different language.

Adopting C++ would have required incredibly strict and disciplined style rules to enforce that only a specific subset of features are used, and in specific ways. It would have been a significant project management overhead to constantly be ensuring that the contributors haven't footgun'd themselves or done something which negatively impacts existing code.

Meanwhile, it's very straightforward to look at C code and understand what it's doing, because it's a very simple language.

Microsoft picked C++ for the NT Kernel, but they had a small internal team that was extremely strict about how they were going to write it.

7

u/ConnersReddit Oct 18 '26

You may correct me, but I recall the kernel being written in C as well

5

u/crozone Oct 18 '26

Oh damn you're correct! Windows NT was C as well. Even MS didn't want to deal with C++ ๐Ÿ˜…

→ More replies (1)

12

u/ThyPotatoDone Oct 18 '26

See but that's what I love about it, whenever I get bored with a repetitive section I can switch to coding in a completely different way to achieve the same results! Plus, I get the satisfaction of knowing I'm poisoning whatever unlucky datascraper sends my code to AI training.

→ More replies (28)

28

u/NoAdsDude Oct 17 '26

Someone added a ++ to C and C programmers took that personally

6

u/queen-adreena Oct 17 '26

It does imply they are - -

60

u/A_Canadian_boi Oct 17 '26 edited Oct 17 '26 • Bravo

C is like base minecraft. Fun, well planned out (mostly), reasonably simple.

C++ feels like one of those modpacks with 300+ mods, ten more tech trees, realistic fusion reactors and particle accelerators, several SCP-class entities, fifteen different new ores, and a DND-like character system. It's just... every single possible addition.

You're not really "supposed" to use all C++ features, just the ones you need and understand, but projects usually end up as a very difficult to parse mess and overall the utility is only marginally higher than C. And given the choice between unreadable C and unreadable C++, the C is going to be more straightforward... probably.

Edit: All that being said, I **really** wish C had a *couple* of C++ features. But everyone says that, and everyone has different opinions on what those features should be, and that's how we ended up with C++ in the first place, so I am happy to just use C and implement what I want from not-quite-scratch.

31

u/Schoolboygames Oct 17 '26

I'm not sure what the overlap between huge minecraft nerds who've played huge modpacks and people playing with C and C++ is, but this is the most oddly accurate comparison I've seen in a hot minute

13

u/A_Canadian_boi Oct 17 '26

Thank you, I TA'd freshman compsci for a while and I developed that explanation for students, lol

→ More replies (2)

3

u/CruxTheologorum Oct 18 '26

The venn diagram, while not a circle, has but a pair of thin half-moons on either side.

8

u/AmazedStardust Oct 17 '26

Those modpacks also include a few nice things however that really do make playing the game easier

→ More replies (6)

7

u/Hohenheim_of_Shadow Oct 17 '26

They're just very different languages that are treated as the same. "Yeah I know C/C++" is a common phrase. Nothing breeds distaste like proximity

16

u/Lord_Of_Millipedes Oct 17 '26

the notification for me said something different than "beginner" :3

C++ started as "C with classes" but grew into an amalgamation of every and any feature anyone ever requested, modern C++ is one of the most bloated languages out there with dozens of ways to achieve any simple task which leads to difficult to understand code as no one can agree on what the language is supposed to look like and a lot of these features are, to be polite, half assed.
Function resolution is a fucking mess of ADL, jump tables, overloads and implicit conversions which makes debugging a nightmare, especially with the horrible namespace dependant module system with unclear scoping rules and acess control and unconstrained generics.

There's a reason every big project using C++ bans almost two thirds of the language, and it's always a different two thirds

9

u/Greedy-Thought6188 Oct 17 '26

It's not just that there are dozens of ways to achieve the same thing. It's that the same syntax can mean different things so your intuitive understanding doesn't work. No function call can be trusted to not have bizarre side effects.

→ More replies (8)

3

u/[deleted] Oct 17 '26

Not wrongย 

→ More replies (3)

8

u/theshoeshiner84 Oct 17 '26

C# is like C++ the same way Java is like JavaScript.

I can write C# and Java and barely switch my brain space. C++ on the other hand...

→ More replies (2)

3

u/Orio_n Oct 18 '26

https://youtu.be/7fGB-hjc2Gc

Watch this entire video front to back

→ More replies (38)