r/learnprogramming • u/Mental-Efficiency-32 • 3d ago
How to Improve Programming Skills and Solve Problems Without Relying on LLMs
Hi guys, I want to know how I can improve my programming skills and learn new technologies more effectively.
When solving programming problems on LeetCode or Codeforces, especially medium and hard ones, I often use LLMs to get hints. After solving two or three problems with their help, I feel satisfied that I've made progress, but in reality, I feel like I've learned very little.
I face a similar challenge when learning new technologies. I sometimes rely on LLMs to explain concepts or provide code. Although this helps me understand things quickly, I struggle to apply that knowledge independently.
How can I develop a better learning approach, improve my problem-solving skills, and gain a deeper understanding of programming and new technologies without relying too much on LLMs?
9
u/HorrificDPS 3d ago
Use the LLM. -- I say this because the industry is basically going to require you to use it.
However, don't just "solve this for me."
Do "help me solve this, don't provide the code. walk me through step by step. Act as a tutor. This is what I have done so far, point me in the right direction without giving me the answer."
If you get to the point enough where you are stuck and NEED to have the LLM solve it, fine do it. Then have it deconstruct the solution.
Then try that same problem again the next day, try without looking at the solution. Repeat until understand solution enough to explain it. Wait a bit, and do it again.
You have to continually reinforce concepts when you get to these barriers, once you break through them to retain the information.
42
u/Dazzling_Music_2411 3d ago •
That's because you haven't really understood, you've only heard.
You need to take several hours, maybe even days, explaining what you've heard before you can really say you've understood it. It's simple really, if you've understood it you can apply it. If you can't apply it, you haven't understood it.
Spend more time actually learning, at the moment you are just being lazy, expecting things to come to you by magic.
19
u/0dev0100 3d ago
... Solve the problems without using the llms
7
u/mc_pm 3d ago
The learning approach is the way we learned how to program up until now - time spent typing in code, solving problems, getting something to work, fixing bugs, and then doing it all over again.
Learning to program is forcing your brain to think about things in a whole different way - it was never going to be easy.
2
u/csabinho 3d ago
Practice. And, as already others mentioned, don't let the LLM generate code.
2
u/joranstark018 3d ago
The brain is like our muscles, we need to train and exercise it to get the new things to stay in "muscle memory", there is no shortcut (at least until we can implant "memories" into our brain)
When we learn new things the brain creates new links between the neurons, the more we activate the same path between the neurons the more the path get esatblished (the "muscle memory"). When we use AI we mostly fastforward and only some neurons may become connected, which can be helpfull in an initial phase, but to solidify the knowledge we need to exercise the "big-muscle" by doing old school exercises (applying the knowledge over and over again and to challenging our assumptions to enshure the path is the correct path).
2
u/Achereto 3d ago
You have to experience. This means doing things yourself and struggling yourself. Nobody can teach you experience. You may learn some lessons from others' experiences, but they are no substitute for your own experience.
If you really want to learn and understand something, you have to look at it from the "inside". If you only look at it from the "outside", your understanding will remain superficial.
1
u/WeakestFarmer 2d ago
Does anyone still remember the rubber ducky method?
1
u/AceLamina 21h ago
dont use LLMs
like at all, remove them from work entirely and start again
1
u/mkhanwrites_ 4h ago
I'd say try to solve some problems without using AI. You need to get practice doing that if that's the majority of how you've been learning till now. Its pretty difficult to avoid the use of AI entirely due to its utility and convenience, but you could think of alternative ways to use it that do not circumvent/prevent/harm your learning process. Personally when I was learning front end development, to get my self jump started with new tools/frameworks I asked AI to show me a small example or guide me through a small project where it could teach me the basics of the framework. I did this for React for example. I found it to be effective in learning the concepts.
For your use case since it seems you're learning the very basics - algo questions - you might be better off with minimal to no AI. Its like you're learning how to write cursive letters, AI can't do that for you.
Also for leet code problems there are many online guides and such stepping you through the problem.
Don't feel bad about not getting a problem either. If you don't get it, look at the guide/solution (it's okay we all have to check our answers), see where you need to shore up your concepts, and attempt the problem again in a couple days/a while longer to see if you truly learned the material
Leetcode is a grind, good luck
0
u/Turbulent_Board4567 3d ago
Pre llm you use to paste it from stack overflow and then try to figure out why it worked and why it doesn't.
Now just paste it to llm. Make it a point to ask it to explain everything in detail.
Also make it a habit to not just directly go to llm immediately when you are stuck.
On the bright side, you will be less frustrated so you can actually progress better on your learning