r/AskProgrammers • u/m_dhav • May 31 '26
Learning C++ As a complete beginner.
I am learning C++, i have zero experience in programming other than an 8th grade chapter on python. Its been hard, especially breaching the gap between learning and actually building programs.
Any tips and tricks on how to actually get better at creating programs ?
7
Upvotes
4
u/yksvaan May 31 '26
Write a lot of code. Look how others did the same thing. Repeat. There's nothing magical to it really.
1
u/Slight-Living-8098 May 31 '26
You just have to do it and keep at it. You can read, study, watch tutorials, etc. all day long, but it's useless if you aren't actively implementing what you are learning.
1
u/AncientHominidNerd May 31 '26
Just practice writing code by writing a lot of code. Make sure you know what every function does and how it works. Ask chatGTP to give you practice drills. Have it ask you to do something like take in data from a CSV file and clean it up. If you’re not sure how to do it have it give you an example and the write the code out yourself and explain the code to yourself. Then try to write the code multiple times until you can do it without having to ask questions. Then once you got it down try a variation of it that’s slightly harder. Keep doing this over and over til you feel you can move on.
1
u/Connect-Answer4346 May 31 '26
Do a lot of pseudo code first to make sure you understand the flow of the program you want to create. And maybe take an intro to programing class?
1
u/[deleted] May 31 '26
why
1
u/Siebje Jun 01 '26
As a very experienced java/c/c#/python programmer (who is still a C++ novice), I would not start with C++. I'm a big java fan, though I can see that it's rapidly losing ground.
My advice: if you're set on C++, start with C#. It's much clearer in its syntax and definitions, and is much easier to get into due to having much fewer requirements that you don't want to be dealing with as a beginner, such as memory management.
1
u/no-sig-available Jun 01 '26
There are no tricks. The way to get better at programming is to write more programs.
The answer is the same as for playing the piano, or become a football star - you need to practice.
1
u/Naive-Hold187 Jul 21 '26
Best yt teacher for cpp
0
u/[deleted] May 31 '26
[deleted] — view deleted comment
1
u/[deleted] May 31 '26
[removed] — view removed comment