r/learnprogramming • • 11d 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

23 comments sorted by

View all comments

27

u/hamster_squeezer69 11d ago

You break the problem down into such small pieces to the point where you are able to digest it and come up with a solution, even if that solution sucks. Map out the modules and libraries that contain the functionality you need to write that solution, and start struggling.

3

u/ConnectAffect2346 11d ago

Agreed, allthough it isn't always needed to break it down to bare minimum, it's okay to brrak what you don't understand and what you do unferstand you can just analyze as is, that way the algorithmic analysis capability will develop aswell as code writing one meaning you understand the code and know how to write something (theory + practice)🙂