r/learnprogramming • • 16d ago

how do you ‘learn to code’?

Hi all, so i’m a cs major and i know the fundamentals of coding and data structures, but i don’t know how to ‘learn to code’ for a project

for context, i’m trying to learn Flask. im using claude code to write a Python notebook that teaches me how to build what i want, but this feels really weird

i want to learn how to build the apps myself, which is the intent of the whole notebook thing, but i often feel bogged down by what claude generates

that’s when i go online to look up some kind of Flask tutorial, but im not sure what to look up, or whatever idea is in my head feels too complicated for what i know how to do. so i was curious, how do i learn these tools? do i just build and hope i understand? or do i read thoroughly? or some middling thing?

25 Upvotes

24 comments sorted by

View all comments

2

u/Feeling_Photograph_5 16d ago

If you're going to code an app by hand you have to start small. Try setting up Flask (or, better, FastAPI) and get it to return anything. Then, have it call a service that returns a value. Then, try to connect it to a database. Then, see if you can build full CRUD functionality. Then try to write some tests. 

Baby steps. You'll get better as you go.