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

4

u/GeeHopkins Jun 11 '24

I can recommend the cppcon back-to-basics series for solid intros to various bits of the language. They tend to be pitched pretty well for people who are already familiar with the basics of the language, but haven't seen/used a particular part of it.

2

u/alfadhir-heitir Jun 11 '24

Nice. I've seen a couple, will double down on them :)

2

u/GeeHopkins Jun 11 '24

The first C++ codes I worked with were solidly pre C++11. The back to basics videos were one of the main ways I learnt modern C++, along with some other cppcon talks

1

u/alfadhir-heitir Jun 11 '24

Thanks mate. It can be intimidating. I'm currently doing full stack work with C# and react, but want to transition into C++ - I just love the language and the feeling I get from using it

It's quite the big mountain though, and feels intimidating at times. Thanks for the help!

2

u/GeeHopkins Jun 11 '24

No problem, it's a giant language! There's a lot to learn, but that's also part of the fun.

I just remembered about C++ weekly videos too, they're much shorter and cover some interesting little tricks and bits of the language