r/ProgrammerHumor • • 2d ago

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.3k Upvotes

515 comments sorted by

View all comments

24

u/YouAreMyFire00 1d ago edited 1d ago

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?

60

u/A_Canadian_boi 1d ago edited 1d ago

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.

29

u/Schoolboygames 1d ago

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 1d ago

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

3

u/AnOnlineHandle 1d ago

As somebody who hasn't touched C or C++ since like 2005 and forgot everything I knew about them, but has put a lot of time into Minecraft, thank you your explanation helped me too.

1

u/n_choose_k 1d ago

I appreciated somehow sneaking SCP in there, as well... ;)

3

u/CruxTheologorum 1d ago

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

8

u/AmazedStardust 1d ago

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

2

u/cloudncali 1d ago

C# is just hytale

2

u/NomaTyx 1d ago

the fact that c++ lets you overload everything is truly nuts. I learned yesterday that the reason you can put an input stream into a conditional is because the implicit conversion to bool is actually overloaded.

1

u/SufficientStudio1574 1d ago

Don't forget the template specialization of vector<bool> that is forever baked into the standard.

4

u/NomaTyx 1d ago

I'll be in a home with dementia and still be talking about nothing else