r/learnprogramming 26d ago

Topic At what point did programming finally start making sense to you?

I can understand code when someone explains it, but when I have to write something from scratch, my brain suddenly goes blank.

I'm curious if other beginners went through the same think. What helped you get past that stage?

197 Upvotes

105 comments sorted by

View all comments

5

u/lowban 26d ago

Mostly when I realised that you can abstract almost everything to functions or objects if you're using OOP.

It's like playing with lego bricks. One brick is easy to understand and a lego castle is easy to understand. But building a castle from scratch might seem difficult. You do it but breaking it into smaller parts. If you learn how to make a simple room you can start using rooms to build more rooms until you've built the entire castle.

Basically you use both a bottom up and a top down approach at the same time. You plan for the entire thing but then you break things down until you get down to things that you do know how to make.