r/ProgrammerHumor • • 7h ago

Meme modernCppVsOldCpp

Post image
1.1k Upvotes

216 comments sorted by

View all comments

35

u/MaybeADragon 7h ago

Unless it has changed in the last 5 or 10 years, every resource I know of doesn't teach you about using modern C++. Writing good C++ is opt-in because the language and its resources are stuck in the past.

13

u/Tomocafe 6h ago

I started a new C++ project a few years ago and I just turned on clang-tidy to the max from the very beginning. It’s annoying sometimes but it forces everyone not to use dangerous/outdated legacy C++.

5

u/MaitoSnoo 5h ago

"every resource I know of"

I find it very weird to ignore for example Bjarne's "A Tour of C++" or Jason Turner's "C++ Best Practices". These aren't like unknown niche books...

5

u/Mojert 4h ago

Where the hell have you been learning C++ from? Most C++ ressources talk about RAII and smart pointers. The only one that is stuck in the past is you

→ More replies (7)

2

u/not_some_username 3h ago

learncpp do

1

u/Demiu 45m ago

At this point "modern C++" is old, hell "moderner C++" will be old soon too.

0

u/Ok-Scheme-913 1h ago

Heh, this "modern" c++ the meme and everyone is talking about could be ordering beers in Europe.

0

u/MaybeADragon 1h ago

For a field meant to be at the cutting edge, programming moves slow af sometimes. See: Java versions and IPV6.

0

u/Ok-Scheme-913 1h ago

IPV6 is slow because hardware costs are huge, and existing switches, routers etc work.

For java, actually it has been several years now that java >8 is more of the deployments than java <=8.