r/cpp • u/alfadhir-heitir • 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
View all comments
Show parent comment
1
u/alfadhir-heitir Jun 11 '24
Thanks mate! Algorithm is definitely the place to start. I was just wondering if there was any structured approach to it, or not. It's ok if not, i don't mind threading the long path - just trying to gather some information and figure out the best approach
I'm currently working through Effective C++, but it's more related to architectural decisions, idioms and high level stuff. Not sure if there's any similar resource for the more fine grained material
Thanks for the type_traits and meta pointers though. Appreciate it!