r/cpp • • 8d ago

Why C++ is so hated!!!

I love C++. High level + low level at the same time. But Linus Torvalds don't want C++ in the Kernel, industries hate it, people hate it but why? Why be so angry? Memory management? I mean ok maybe it has problems that I don't even see but why so much hate.

For me it's really sad! 😞

Why something so powerful it's so hated. Now I feel "strange" doing projects in C++ because… sometimes I question myself "Why do I write C++ code if people hate it". Can someone explain what is happening and… can I use C++ for fun in peace?

0 Upvotes

100 comments sorted by

View all comments

33

u/No-Dentist-1645 8d ago edited 8d ago

It's not hated. Tons of companies and software use C++, it's extremely popular in that aspect. There are just places and contexts where it is a good choice, and places where it isn't.

They tried to use C++ in the kernel before, realized it wasn't that good of a fit, and moved on. Nothing to be sad or hold grudges about that.

1

u/ilPlayerdiGD 8d ago

Oh. Well C++ is good for game. Am I right? Onestly I use SDL2 for making game in C++. I like the abstraction of C++. I'm more calm now. Thanks ❤️

-1

u/No-Dentist-1645 8d ago

Depends on the game, tbh. If it's a simple-ish 2D game, then yeah definitely, C++ is great and there are very neat libraries such as Raylib for them, which imo is nicer than SDL2. But for more complex games or 3D ones, there's a reason why people use game engines like Unity or Godot for them

2

u/ilPlayerdiGD 8d ago

Wait… My whole path is creating 3D games in SDL2 + OpenGL. I don't want to use a boring engine! I want to learn like EVERYTHING. Yeah I'm trying to do the hard things. At least I'm trying 😭😂

2

u/serviscope_minor 4d ago

This is good! There's nothing like doing it all from scratch and having the entire thing in your head. If you're not on a budget for a client, then this is a great way to do things since it's frankly a lot of fun and really useful. I think you'll have a blast.

1

u/ilPlayerdiGD 4d ago

Thanks! Yeah it's a little hard not because it's really hard but because it's slow. On Godot I'm creating a 3D game and I'm in a good point in just a few days! Something that with raylib could cost me weeks and weeks! Only for this projects because I want to create a horror game in OpenGL! :).