Ask HN: Are LLMs useful or harmful when learning to program?
11–20 of 21 posts
Re: Ask HN: Are LLMs useful or harmful when learning to program?
#12Re: Ask HN: Are LLMs useful or harmful when learning to program?
#13For instance, one of the best ways I've found to learn a new language or framework or technique is to find a working example of something, then take it apart piece by piece to see how it all fits together. LLMs can work really well here. They can give you a super basic example of how something works, as well as an explanation you can use as a jumping off point for further research.
And those basic examples can be surprisingly hard to find elsewhere. A lot of open source systems are designed for people with no programming knowledge whatsoever, and in a way that they can handle 52 million possible use cases with all the caveats that brings along. So when you're trying to learn from them, you end up having to untangle hundreds of conditions and feature flags and config options and other things designed for use cases you simply don't have. LLMs can provide a simple, customised example that avoids that.
That said, you have to be willing to try things yourself, and put in the effort needed to figure out why the code the LLM returned does what it does, and how it works on a technical level. If you're just throwing problems at the tool and letting them do all the work (like many vibe coders now), you're not really learning anything.
Re: Ask HN: Are LLMs useful or harmful when learning to program?
#14But the learning happens when you bang your head. It has to hurt the same way going to the gym hurts. If it doesn't, you're not training and probably you're not really learning.
Re: Ask HN: Are LLMs useful or harmful when learning to program?
#15Re: Ask HN: Are LLMs useful or harmful when learning to program?
#16Case in point I asked LLM to generate some code for me. It didn’t use generics (a language feature) and gave me some shit code.
I had to prompt it several more times to give me generic code with better typings.
I think it would be helpful for a total nooblet to get a hang of the basics but I think if they rely on the LLM too much beyond a certain point they will face diminishing returns.
Think about it. There is so much knowledge in the world. Anyone can do anything to a satisfactory degree pretty quickly. But to really understand something takes experience and self-discovery. And I’m not speaking about master. Just expertise.
Re: Ask HN: Are LLMs useful or harmful when learning to program?
#17Re: Ask HN: Are LLMs useful or harmful when learning to program?
#18Re: Ask HN: Are LLMs useful or harmful when learning to program?
#19Re: Ask HN: Are LLMs useful or harmful when learning to program?
#20Don't use LLM while you're learning. Don't outsource your thinking to a third party. Period.
[1] Both extremes are bad. Two integrals are too few. A million are too many.