r/learnprogramming • • Sep 23 '26

discussion How do you actually get comfortable with reading other people's code?

88 Upvotes

I can write my own small projects fine and understand the logic as I go, but whenever I open someone else's codebase, even something fairly simple, I get lost fast. Too many files, functions calling other functions I have to jump around to find, and no idea where the "start" of the logic actually is.

I know this is probably just a skill that comes with time, but I'm wondering if there's a better way to practice it instead of just staring at repos feeling confused. Do you start from the entry point and trace forward, or pick one function you care about and trace backward? Do you use any tools to help visualize how files connect, or is it mostly just patience and note taking?


r/learnprogramming • • Sep 25 '26

15 yr old daughter discovered coding and loves it. But what’s the point?

0 Upvotes

My almost 15 yr old discovered she is really good at coding and also really enjoys it. She really loves the challenge of solving the problem. She understands it so well and is so excited with how good she is at it. The problem is, isn’t it worthless now? With AI able to do it all what is the point of encouraging her to spend her time doing something that is essentially useless. She has other hobbies as well so I don’t think encouraging her to sit in front of a screen is really worth while unless it leads somewhere. I guess my question is, am I wrong? Is it something she can still pursue?


r/learnprogramming • • Sep 24 '26

Typescript Nodejs

0 Upvotes

I don’t have prior experience in programming and struggling to work for a client using Typescript Nodejs for backend programming. I have started with learning JavaScript first and then move to Typescript but it’s kinda overwhelming. Any suggestions on the roadmap and which course to follow? Thanks


r/learnprogramming • • Sep 24 '26

Discussion I love making things, but programming just isn’t fun for me anymore. Am I just not meant for it?

1 Upvotes

First of all, thanks to everyone who replied to my post yesterday. I read all the comments and they gave me a lot to think about.

There’s something else I’ve been thinking about though.

I really like making things.

I enjoy video editing, and I especially love messing around with gadgets and computers. I like trying new devices, changing settings, figuring out how things work, and creating stuff.

So I feel like programming should be something I enjoy too, because it lets you build almost anything.

And I used to enjoy it more.

But recently, I just don’t find programming that fun anymore.

I’ll start coding, work for a little while, and then I’ll end up lying on the couch watching Netflix instead.

I also get frustrated really easily when I don’t understand something.

This happens especially when I use AI to build something and the project becomes way more complicated than what I actually understand.

Suddenly there are tons of database schemas, files, abstractions, types, and complicated code that I didn’t really write or design myself.

The project might work, but I look at it and think, “I have no idea what half of this is doing.”

Then I get annoyed and don’t even want to continue.

Sometimes I wonder if I actually like programming, or if I only like the idea of being able to make software.

Maybe I like making things, but not programming itself.

Or maybe using AI from such an early stage made me skip the part where programming actually becomes satisfying, because I never properly learned how to solve problems by myself.

I’m still in high school, so I know I have plenty of time to learn. But lately I’ve started wondering:

Is this a normal phase when learning programming?

Have any of you gone through a period where coding just stopped being fun?

How can I tell the difference between “this is difficult and I need to push through it” and “maybe programming just isn’t for me”?

I don’t want to force myself to become a programmer just because I’ve already spent years doing it.

But at the same time, I don’t want to give up on something I might actually enjoy if I learned it differently.


r/learnprogramming • • Sep 24 '26

Solved How do I indicate whether a string is a digit or not in c++?

9 Upvotes

I have a user input and I want to determine whether the user input is a digit or character.

I was thinking of using regex but do not know regular expression in C++ can some please help me with this

Here is a snippet of my code

string userinput;

cout << "Input 1, 2, 3, or 4: "; 

while (!(cin >> userinput)) {
  cout << "Invalid input. Try again: ";
  cin.clear(); // Reset input errors
  cin.ignore(10000, '\n'); // Remove bad input
}

 
for (auto i : playlist){
  if (stoi(userinput) > 4){
    print("Song Not Avaiable")
    break;  
}

SOLUTION

#include <cctype>

/*while (!(cin >> userinput)) {
  cout << "Invalid input. Try again: ";
  cin.clear(); // Reset input errors
  cin.ignore(10000, '\n'); // Remove bad input
}*/

for (int i = 0; i < userinput.size(); i++) {
    if (!isdigit(userinput[i])) {
        print("Song Not Avaiable");
        break;
    }

    else if (stoi(userinput) > 4) {
        print("Song Not Avaiable");
        break;
    }
}

r/learnprogramming • • Sep 14 '26

Is it normal to understand code but struggle to write it yourself?

212 Upvotes

Hi everyone

I’m currently learning Python and I’m starting to feel pretty frustrated with myself.
When I’m watching a Python course, I can usually understand what the instructor is doing. If they write some code, I can follow along and understand what each part does. It’s not like the concepts completely go over my head.
But then when I’m given a problem and told “Okay, now write the code yourself”, my mind just goes blank.
I might understand the solution when I see it, but I struggle to come up with the solution and translate it into code on my own.
It makes me feel like I don’t actually know Python, even though I can understand a lot of the code when someone explains it.
Is this normal in the early stages of learning programming?
If you’ve experienced this, what helped you get from “I understand the code when I see it” to “I can actually write the code myself”?
Should I be doing more exercises, building small projects, rewriting code without looking at the solution, or something else?
I’d really appreciate hearing how other people got through this stage.


r/learnprogramming • • Aug 23 '26 Bravo

How do I become a programmer with deep knowledge like Tsoding?

424 Upvotes

I recently watched Tsoding coding and I was honestly amazed by how deeply he understands programming. He seems to be able to just sit down, think through a problem, and build things without constantly relying on tutorials or looking up every little thing.

It really inspired me, and I'd love to reach that level of understanding someday.

For programmers who are actually experienced: how would you recommend learning programming to develop that kind of deep knowledge?

What should I focus on learning, and where should I learn it from? Books, courses, projects, open-source, algorithms, computer science fundamentals, learning C/C++, etc.?

I'm currently still relatively early in my programming journey, so I'm not expecting to become that good quickly. I just want to build the right foundation instead of endlessly following tutorials.

Would really appreciate advice from people who have gone down this path.


r/learnprogramming • • Apr 28 '26

Topic Shell vs CLI vs BASH vs TERMINAL (Last but not least Command prompt)

42 Upvotes

WHAT'S THE DIFFERENCE BETWEEN THESE TERMS AND I'M NEW TO THIS SO I'M GETTING CONFUSED?

At first I thought all of this was the same regardless of the operating system . How are they different and when and where are they used??

I would appreciate it if someone explained in the form of points so that I can note down.


r/learnprogramming • • Dec 19 '25

I’d like to hear from professionals: Is AI really a technology that will significantly reduce the number of programmers?

154 Upvotes

On social media, I often see posts saying things like, ‘I don’t write code anymore—AI writes everything.’
I’ve also seen articles where tech executives claim that ‘there’s no point in studying coding anymore.’

I’m not a professional engineer, so I can’t judge whether these claims are true.
In real-world development today, is AI actually doing most of the coding? And in the future, will programming stop being a viable profession?

I’d really appreciate answers from people with solid coding knowledge and real industry experience.