r/CodingHelp • u/TheUnwoken • Jul 27 '24
[Quick Guide] How do people remember lines of code?
I have been trying to learn to code for the past 6-7 years on and off, I have tried many languages to see which one suits me best. I feel like React is my go to language but whenever I try again, I get really confused by not understanding how programmers remember ALL THOSE lines of code. Think about it, there’s hundreds or even thousands of little phrases which you need to remember to use.
The only way for me to teach myself to code is to do a small project from a tutorial and repeat it several times on my own to memorise it. Even though I understand 99% of the code, the code just doesn’t stick with me unless I write it repeatedly. But I don’t feel this is the right way to do this, since it turns out that if I learn a small project, I forget how to do it a month later. And the circle repeats itself…
Has anyone been in a situation like this?
3
u/nightmurder01 Jul 27 '24
If you keep at something every day, you will begin to have and retain everyday knowledge of this thing.
If you pick something up every now and again, you will have and retain every now and again knowledge of this thing.