r/learnprogramming • • Nov 01 '26

feeling discouraged - coding is 'too hard'

im trying to get into learning C++. I've taken courses and have some experience with data structures and algorithms. but I can't code from scratch and when I go learn tutorials, I often feel like I can't do anything on my own. I know people say to sit with your code and debug in order to learn, but how do you even get to that point? I guess my question is: how do you actually learn to program from scratch?

edit: it looks like I've found a number of people looking to work on projects, so I made a discord for group projects! You can join here: https://discord.gg/ysbgcD8Baf

87 Upvotes

102 comments sorted by

View all comments

Show parent comment

2

u/slightlypug Nov 01 '26

Ok got it! Gosh duh, I see that error with cloning the repository. I can't believe I wrote that for C++ lol

3

u/MrCodeGameandAnime Nov 01 '26

Lol, that's a common mistake when you're used to working with other technology.

Now for the next step:

A stored user must be editable and removable. Update the program accordingly. Document your references and make sure the README remains accurate.

2

u/slightlypug Nov 01 '26

Hey! Good morning, so I made the user editable and removable. It's still a first draft at the time of writing, but I'm thinking I could optimize what I'm doing. this is fun!

1

u/MrCodeGameandAnime Nov 01 '26

Good morning! I'm happy you're having fun! Don't worry about optimizing at the moment. We're building. Refactors are useful once enough is established to understand what can, should, or why improve. Now for the next task:

Create Alice, Bob, and Charlie. Edit only Bob. Then retrieve all three users and tell me what happened.