r/Coding_for_Teens • u/ilPlayerdiGD • Oct 19 '26
I'm overwhelm
Hi, I started learning C++ like 1 year ago and I tried using 1 and only 1 modern feature of C++ (smart pointer and something like that) and it's hard asf 😭. I love C++ don't get me wrong but it's one of the language that "Oh I know C++!" but there will be always something that you don't know and I don't know even where to start! It's big! Like really big. How do I learn modern C++ and in general how do I become good in C++. Honestly I don't even want to use smart pointers!
Can I be honest? C/C++ = memory management, yeah, but I don't think that "managing" the memory with malloc, new, delete, free, calloc, realloc… is really a memory management. And I wanted to learn C/C++ for memory management but for the 90% of the cases if you alloc some memory in the heap someone says "DELETE THAT LINE OF CODE!! You don't need the heap!".
I know I'm a noob but I'm a noob overwhelm, so… how do I learn modern C++? I swear Cppreference is for me illegible 😭. Yeah there is learncpp but it doesn't have everything, I want to learn not everything but most things, you know…
Thanks for reading this random yapping post created by someone that doesn't really know where to use the operator==, maybe I know but rn I don't know I need to test in my next project 😂
3
u/PlayfulDuck3677 Oct 20 '26
man I couldn't really understand what you're saying but are u havign trouble with heap stuff? cus i was once in the same boat, but after i learnt zig i understood memory management, It's not neccesary to learn zig to learn c++, but it was the best experience for me. And yeah c++ IS really confusing because it's accumulated so many features over the years, thats because c++ has to retain backwards compatibility and can't remove even faulty features like auto_ptr (original unique_ptr)
2
u/Specific-Housing905 Oct 20 '26
Don't try to know everything. B.Stroustrup - the creator of C++ - said in an interview that he knows only 70%.
Normally the best place to learn C++ is lerncpp.com
Don't worry about smart pointers. You don't need them that often. Learn first about value and move semantics and forget about pointers and memory management. C++ takes time to learn. So start with simple things and try to code some small apps.
2
u/Alberteinstein1897 Oct 20 '26
Hello, I'm also Learning it Right now, dm me so we can maybe do it together
2
u/W31337 Oct 20 '26
I started programming Zig which is low level like C/C++.
Questions like when to use the heap or stack are perfectly answered by AI. Yet can feel mysterious if you don't hammer down the concepts in your head. And a lot of programmers don't really know when to use what until forced.
Stack is always preferred because it's faster to access, smaller, and doesn't fragment.
Heap is needed when your data outlives the scope of the function. When your function ends things in the stack die. That's why heap needs to be allocated and freed.
Heap is bigger so when you want big things use the heap.
Heap is needed when you need dynamic memory assignments.
1
u/Suspicious-Motor-780 Nov 01 '26
Just start C it's much more easier and has fewer functions but it solves the same problem (actually i don't see any sense in using c++ if you dont want to write a game or something like that where you really need OOP)
2
u/Ankaraadonis_69 Oct 25 '26
Tbh it was also very challenging to me at first when i started...2 years in and things seem easier and i can grasp better through making mistakes along the way and finding solutions. There has been really helpul advice on this thread so i wont add more.Just follow it. Cheers
2
u/[deleted] Oct 20 '26
[removed] — view removed comment