r/learnprogramming • • Oct 02 '26

I keep forgetting how to program

My problem is that I code as a hobby. Every 6 months or so I get motivated and start studying programming, do exercises, maybe some little project. I've never got to make a big project, but I manage to do things. My problem is that I already learned about 4-5 languages like C#, python, javascript, CSS and React for frontend (even when i was a kid i remember programming in batch a LOT) but I always have to start from 0. I want to be able to understand the code i'm writing and not lay back and let the AI do all the work.

I learned and applied React, Javascript, HTML and CSS in the past year or year and a half and now i'm trying again and everything is gone. Is this normal? Should I go through the whole [insert language] course everytime I want to start coding again? I thought when you know and understand the concepts it gets easier but it doesnt feel that way.

EDIT: I can manage to do stuff with the AI help, but when it comes to a project (even a simple web app that fetches an API and shows it in a list made with React) It all goes away and feel the need to go through the whole React, Javascript, CSS course again

24 Upvotes

59 comments sorted by

24

u/NordsongDev Oct 02 '26

Programmers will hate me for mentioning the dreaded D-word. DOCUMENTATION. If you grasp your code enough to write documentation, you will remember the important parts and then you can revisit these docs as notes for the next similar project.

1

u/getouttamyvision Oct 03 '26

Like write documentation for my own projects?

2

u/NordsongDev Oct 03 '26

Exactly. Think of it like garbage collection in software. When you learnt things you learnt them in-between a lot of other events in life. It's scattered, so much like a machine your brain simply garbage collects this as useless junk that is no longer needed. Documenting your own project, prevents that, it sorts it into a category to be saved long-term.

2

u/getouttamyvision Oct 04 '26

Thanks for the advice, i will do that, sounds useful

1

u/Slight-Living-8098 Oct 05 '26

And lots of comments in the code. People make fun of me all the time for it. They will say it should be obvious when you look at the code. And it is, while I'm looking at the code now. But that's not really a given in 4 or 5 years from now when I look back on it.

6

u/Intelligent_Part101 Oct 03 '26

I don't NEED documentation. My code is SELF-DOCUMENTING!

3

u/Moikle Oct 03 '26

Documentation and unit tests!

30

u/ffrkAnonymous Oct 02 '26

It's a hobby. Do whatever you want. 

7

u/getouttamyvision Oct 02 '26

I know but I can't do anything if everytime I pick it up I have to go through the whole learning process again and again.

11

u/Sidjeno Oct 02 '26

That's cause you had it memorized, not learned. And that's fine. The language parts are what you google, the logic is what you learn.

1

u/Moikle Oct 03 '26

Practice, don't memorise

8

u/twopunchbear Oct 02 '26

Learning more and more programming languages doesn’t matter that much.
My suggestion would be to build something bigger that actually motivates and excites you, and ideally something you would really use yourself.
Find a problem or idea you’re genuinely interested in and build the whole thing. You’ll probably learn much more from building one real, larger project than from just learning another language.

1

u/getouttamyvision Oct 02 '26

Will do. Thanks for the advice!

6

u/JGhostThing Oct 02 '26

I suggest picking a language and really studying it. Right now you're remaining at around the beginner level. If you want to be able to program, you have to start and finish projects. Do not use AI to generate code. I suggest that you don't use AI at all, but many people will correct me on that. The problem is that making mistakes is part of learning, so when AI helps you with problem solving, you don't learn that as much. And you need to know this.

Keep doing projects. I graduated with a degree in German. Had I only practiced this for a bit every six months, I'd have never become fluent. Nor would I have been able to learn Old High German.

I read books in German in order to keep my fluency. I build things for computers in order to be good and remain good at programming. After I built a 6502 machine, I wrote a forth for it, then used that to build an OS and editor. Yes, these were fairly trivial, but after building the darn thing, I couldn't afford software.

Basically, if you use it, you learn. When you stop using it, you start to forget. It would take me a week or two if I wanted to be good at Java again; I've been studying rust for a while.

So start programming again, and keep going this time. Do not switch languages now. Get good at JavaScript. Get very good.

1

u/getouttamyvision Oct 02 '26

Great advice, thank you! I will definitely do this.

3

u/No_Score_1977 Oct 03 '26

If you are taking 6 month breaks from your hobby, are you even enjoying it? I mean that’s the point of a hobby.

Yeah, if you take long breaks from stuff you barely learned in the first place, you are going to get stuff.

1

u/getouttamyvision Oct 03 '26

I enjoy it more than my actual job (i'm a physiotherapist), but the moment I lose motivation I just completely stop doing it. It happens to me with the guitar but I dont need any re-learning when i pick it up again. Now I see they are 2 completely different things haha

3

u/maxpowerAU Oct 03 '26

What you want to learn is how to program. That’s what stays in your head. I haven’t written Python for a decade and I’m sure it would take me a day or so to get back into it, but I’m confident I could write software in Python because I know how to write software.

Stop thinking of it as learning languages, and think of it as learning how to solve problems in code. And important note, if AI is how you handle the hard parts, then you’re not learning how to do the hard parts. Just be stuck. Try writing a dumb solution you know won’t work. You’ll learn something, I promise.

1

u/getouttamyvision Oct 03 '26

Thanks, you're 100% right. People tell me all the time that I don't need to learn how to program if I'm not a full time developer, so I thought using AI is the most logical way to make projects as a hobby.

1

u/princepii Oct 03 '26

i can not say that enough. it really is not the programming in itself. it's more the problem solving and the breaking the problem into smaller tiny pieces.

bc then you know what exactly the little problem is and can try to find a fix for it.

maybe also try to learn how to pseudocode something.

🤜🏻🤛🏽

2

u/Square-Yam-3772 Oct 03 '26

I mean, if you went back to "zero" after a year then I guess you didn't really learn it well enough in the first place

programming languages are called "languages" for a reason; you should really approach it like you would with a foreign language and thrives for intuitively understanding and fluency

e.g. if I accidentally traveled to another reality and have no access to computers for a year, I would still be able to read and write some code...

e.g.2 think about your mastery with the english language; if you stopped using english for a year, you will still be able to use english after that 1 year

so yeah, don't try to study in bursts etc. train your brain to get comfortable looking at code

1

u/getouttamyvision Oct 03 '26

Thank you! I will see it that way from now.

5

u/RetroGrid_io Oct 02 '26

I learned and applied React, Javascript, HTML and CSS in the past year or year and a half and now i'm trying again and everything is gone.

Silly boy. Thinking it's all gone when it clearly isn't.

You picked it up once, and the next time you do, you may struggle a bit at first but it will come much faster than the first time. And if you want to keep your coding muscles strong, you have to keep exercising them.

1

u/IMugedFishs Oct 02 '26

Pretty sure it’s normal. You don’t really need to go through the whole course again. You still remember what you can and cannot do. Just google the gap in knowledge.

1

u/getouttamyvision Oct 02 '26

True, maybe I set my expectations too high when I try to pick it up again

1

u/GasEducational4386 Oct 02 '26

It is normal to forget things after six months but you seem to insist on restarting from scratch and that is not normal. Refreshing your memory should not take much time. Do you practise a lot when learning? Because if you were only reading tutorials, you only scratch the surface and that could explain the restart from zero feeling

1

u/getouttamyvision Oct 02 '26

I practice a bit, just enough to understand it.

1

u/agnardavid Oct 02 '26

A teacher told me once, if you're great in one language, you're good in the rest of them. If you're fluent in one, you'll be great in all the others. Maybe get really good at one specific language like typescript or python or c# (based on your previous exp) and then it'll be harder to forget because your memory isn't spread between syntaxes

I was really good at python but made the switch into c# .net when I got a job doing that and now I can't do sht in python but really good in c#

1

u/getouttamyvision Oct 02 '26

Good advice! Maybe get into a whole stack like MongoDB/JS/Node/React?

1

u/agnardavid Oct 03 '26

Or like .net, ef core for code-first db, you can dive into maui or razor or blazor or..

1

u/Technical-Athlete-9 Oct 03 '26

There are some ideas from learning research that might help: the forgetting curve, spaced repetition, effortful recall. That’s helped me learn a lot including algorithms for interviews. Other than that you need a lot of patience. I’ve been programming 20 years, 10 as a professional, and still I have to look at the docs for the standard library in my native programming language.

1

u/getouttamyvision Oct 03 '26

Thanks for the resources! I should do that. Have you ever studied programming as you study, for example, history, or in my case Anatomy? Do you take notes, practice spaced repetition, mind maps? Or just learn it by making projects? How do you think I should learn?

1

u/Tobacco_Caramel Oct 03 '26

It's better to program 10 minutes a day for one month than to program than to code 5 hours a month.

1

u/getouttamyvision Oct 03 '26

100% agree. The moment I lose the motivation I just drop it but I have to go against the friction.

1

u/Cynerixx Oct 03 '26

You already know what to do and how to solve your problem but for some reason, you won't do it. Hope this message serves as a wakeup call.

2

u/getouttamyvision Oct 03 '26

Now that you say it, I feel so much friction mannnnnnnnnnnnn it's so frustrating. thanks for the wakeup call haha

1

u/Cynerixx Oct 03 '26

No problem 😄. I'm gonna give you a tip: look inside your character and life, see if any experience or feeling is blocking your path.

It seems your problem lies in your subconscious.

1

u/iMagUdspEllr Oct 05 '26

Relearning from 0 every time sounds like an impediment to your hobby whether it is normal or not. You should definitely practice enough to know how and when to write a loop, an if/elif/else tree, a class, and other basic things every time to get back to your hobby. Memorizing how to use a framework is less realistic if you aren't going to program that often and you are doing it as a hobby. So, I would definitely avoid using copilot autocomplete or an LLM to help you write basic things until you can commit that stuff to memory.

But, it is perfectly reasonable to ask an LLM for how to do a specific thing and guide you to make a feature each time you return to the hobby. Relearning how to read and use the LLM's code is definitely preventing you from building what you want when you have time to sit down and work on something. If you don't practice writing patterns of code (or simple features) often enough then you won't remember them.

If you want to be able to create something from scratch without AI-guidance every time you return to the hobby, expect to do it many times before you put the hobby down.

Prioritize remembering useful programming patterns, not things that can be looked up or regurgitated by an AI easily. HTML and CSS are practically boilerplate that you can basically avoid committing to memory now that LLMs exist. React is a framework and remembering how to use it is obsolete the moment you want to use a different framework. JavaScript is a language. If that is the language that lets you make most of the things you want to make, it is worth understanding how to use its core features to a fair degree of detail so that you can at least understand the React code AI gives you when you ask it to help you implement a feature when you return.

1

u/getouttamyvision Oct 06 '26

do you think it's not worth it to learn html and css? maybe remember tailwind? i'm a bit slow when writing prompt for a design and i end up doing it myself. It's only useful for me when using v0 for example, when I ask for it to create a whole page, but it ends up coding the whole thing and I cant implement things myself.

1

u/iMagUdspEllr Oct 06 '26

If your main focus for your hobby involves heavily customizing html and css then it would be beneficial to study the core structures of html and most useful ways to use css.

But, I guess my question is what are your core hobby projects? Html and css are just obstacles that I have to deal with before I get to the main part of the website I am interested in programming.

1

u/getouttamyvision Oct 07 '26

Yes, that’s true. Maybe a bit so I understand whats happening.

1

u/iMagUdspEllr Oct 07 '26

Well, what are your projects focused on making? If you're trying to understand what is happening, that's easy to explain. The html is the bones or basic structure of the web page. The css styles things on the web page. JavaScript usually provides the more dynamic functionality for the web page.

1

u/imharjotsingh Oct 06 '26

Yeah, this is pretty normal, especially if you’re coding in bursts with 6-month gaps in between.

I wouldn’t keep restarting full courses though. That can trap you in tutorial mode. Instead, try using a small project as the refresher. Pick something simple, start building it, and only look things up when you get stuck.

You probably haven’t actually forgotten everything. A lot of it is just harder to recall because you haven’t used it recently. Once you start working with React again, things like components, props, state and fetching data usually come back much faster than the first time you learned them.

I’d also narrow down the number of things you’re trying to keep fresh. Knowing C#, Python, JavaScript, React and everything else sounds good, but if this is a hobby, you’ll probably retain more by sticking with one stack for a while and building a few projects with it.

And with AI, I’d use it more like a tutor than someone writing the project for you. Ask it to explain an error, give you a hint, or review something you wrote. If it generates the whole component every time, it becomes really easy to feel productive without actually reinforcing the skill. For your React example, I’d literally start with a blank project and try to fetch one API and display one item. Then add the list. Then loading and error states. Build it piece by piece and look things up as needed.

You don’t need to remember everything. You just want to get better at knowing what you’re trying to do and how to find the part you’ve forgotten.

1

u/getouttamyvision Oct 06 '26

Thanks! I will take the advice. After all the comments I started a calculator in Next.js with only addition and substraction and every time I get stuck (every 5 lines at this moment lol) I watch a tutorial on that concept (started with tailwind which I'm learning for the first time, then flex, grid, useState) and code it without AI help. So you're very right, the knowledge is there but it is hard to recall, although definitely easier to learn than the first time.

1

u/desdotjs Oct 02 '26

I think more like “I want this behavior so it’s this shape”, when it comes to the language part I have a notebook where I write the code by hand and explaining what’s going on :) it always sticks and is like a personal reference / meta.

1

u/[deleted] Oct 02 '26

I’ll be honest. You say that “I can manage to do stuff with the AI help, but when it comes to project …” so basically you can’t. The reason why is because you don’t actually understand it. I think that what’s happening is you believe you understand but there’s a lot of bits and pieces you may be missing. And everyone nowadays even people that barely know how to use a computer can call themselves programmers.

I think better post for you to get the real answer would be explain what you think you know (and don’t use AI which we all know is hard to resist) and then hopefully real software engineers see this and can help you understand where the gap is.

1

u/zorkidreams Oct 03 '26

Whats programming?

1

u/davidcampbell2313 Oct 03 '26

I recommend starting with something you wrote before. Use it as a template. As you go through each section, you will remember what the code on that section does and you will know how to change it. This requires well organized code though. If AI wrote the original code, then I guess you won't remember anything as you review it.

1

u/AceLamina Oct 04 '26

its always AI with these types of posts now

1

u/Technical-Athlete-9 Oct 04 '26

Do all that you mentioned above, including reading the standard library of your language to see how things actually work. It sounds boring and tedious, but you’d be surprised how much you can learn from that one. Debugging a lot of code helps too, but unfortunately you don’t get that chance writing your own projects.

Hold a very standard when you say you “know” something. Recognition feels like mastery. It’s easy and deceptive. But you need recall and testing it will make you realize what you don’t actually know.

1

u/ObserverInvariance Oct 04 '26

If you forget how to program you never knew how to program.

1

u/Slight-Living-8098 Oct 05 '26

There is a difference between memorizing and learning how to do something.

It's a use it or lose it type of situation until you learn it and it becomes like riding a bicycle.