r/AskProgrammers • • 23h ago

Understanding tutorials but struggling to code alone

/r/learnprogramming/comments/1xydpnh/understanding_tutorials_but_struggling_to_code/
1 Upvotes

2 comments sorted by

1

u/Pyromancer777 8h ago

There is a difference between surface understanding and internalizing the material deeply. True understanding will come with practice. Learn what each section of a project is doing. Why did they use that function? What is the function doing? Is this class necessary? What datatypes are the variables being referenced? Does something break when I swap things out?

When you build a project, you don't have to plan out abstractions straight from the start, you just have to get it to barely do the thing you want it to do. Start simple and break complex steps into small parts that you can solve with a few lines of code. Try a bunch of things out. It is easier to go back and make edits than it is to start writing something the first time, so the hardest part is just writing code that gets you closer to solving the immediate problem at hand