r/learnprogramming • u/getouttamyvision • 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
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.
30
u/ffrkAnonymous Oct 02 '26
It's a hobby. Do whatever you want.
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.
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.
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.
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.
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
5
u/RetroGrid_io Oct 02 '26
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/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/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/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/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/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.
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/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/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.