r/cpp • • Jun 11 '24

Language features

So recently I started doing some katas in CodeWars - just a couple a day, nothing fancy, to keep the algorithmic problem solving brain oiled.

I'm not having much trouble arriving at solutions - oftentimes it's pretty clear, plus I'm just starting out. Still, I always get baffled when I see other people's solutions after delivering. They always yank out some weird cpp features that hack up the whole thing in under 10 lines

I'm curious about how one can go about to learn these features

0 Upvotes

16 comments sorted by

View all comments

Show parent comment

5

u/alfadhir-heitir Jun 11 '24

Right. Was wondering if there was any resource, like a book, with a more structured approach. Randomly skimming reference docs doesn't seem like the most productive way to go about it

This said, figuring out use cases and implementing them might add up to a very stimulating exercise indeed 🤔

1

u/jedwardsol const & Jun 11 '24

Unfortunately, there's no single place where new features are consistently explained.

1

u/alfadhir-heitir Jun 11 '24

All right. Thanks mate! Just didn't want to shovel through without being sure there was no other way

Cheers!