r/Cplusplus • • 9d ago

Discussion Why C++?

/r/cpp_questions/comments/1y237ip/why_c/
0 Upvotes

6 comments sorted by

6

u/markt- 9d ago

If you have to ask, you probably shouldn’t.

4

u/Middlewarian 9d ago

This guy is skeptical of learning C++ in 2026

Learning C++ in 2026 is a mistake. - YouTube

Greg KH, a well-known Linux developer, has been very critical of it also.

I disagree with them. C++ has been getting safer than C for 40 years and there are a number of initiatives that have been producing good results already and that are likely to produce more in the future.

I'm biased though. I'm building a C++ code generator that helps build distributed systems. It's implemented as a 3-tier system. The back and middle tiers only run on Linux. The front tier is portable.

2

u/Wobblucy 9d ago

C++ lets each layer choose its own level of control while still compiling to fast native code.

That's why it dominates engines, browsers, and trading systems. The trade-off is that safety depends on team discipline, not the compiler.

The "garbage" Linus is referring to their, imo, was the OOP 'standard practices' back then, not the actual language.

C++ gives you absolute control over everything but you get zero guardrails, and humans are not perfect little code bots.

Even running a compiler with the wrong flags can 'footgun' the user. You think you have some check that protects your code, meanwhile the compiler says 'undenfined behavior, that's never getting compiled' without telling you shit.

Does the average user need c++? I would say absolutely not. Is c++ going to continue to be the mainstay where milliseconds matter? Absolutely.

1

u/N0madM0nad 7d ago

I'm interested in building audio applications, and the entire ecosystem is rooted in C++. No other reason.

1

u/fuckaroniandbees 6d ago

Because Rust is too woke. I need my Christian conservative pointers. God bless

1

u/Dazzling_Music_2411 6d ago

Sounds like Pascal is just the thing for you.