Don't let AI write the code for you and send diffs when you're a newbie.
Use it to understand, to ask questions, use it like a better stack overflow/google, but don't copy/paste chunks of code.
If you do have it generate more than a single line, mess with it, change it around, type it in but change the way it works, see if there's other method calls that would do what you're doing, see if you can refactor it.
Basically, don't just get into a copy/paste loop. The same thing happened when Stack Overflow became big, you had a whole generation of code monkeys who could copy-paste something sorta working from stack overflow/googling, but when something broke, they had no clue how to fix it.
Copy-paste here (or having it send diffs) is the evil part, not the AI. AI can really help you learn new tech. Have it do code reviews, have it brainstorm ideas, or have it even find the right apis for you, Just don't copy paste!
The level of gate keeping in our industry is pretty depressing.
Also, you can ask the AI to review your code, and it won't give you grief like the Internet would. You can ask questions without the need for asbestos underwear.
I see a lot of posts on forums stating that newbies should really understand the code they are producing.
Well I certainly didn’t when I was starting to learn.
AI allows juniors to magically fix the mistakes or suggest an alternative solution without needing to _think_ themselves. It will cook up a script in seconds to approach the problem from a completely different angle.
I only use AI when I'm really stuck on something and enjoy learning new ways I had never even thought of before. This provides me another avenue to explore before asking AI to help again.
- use it to find information, like APIs & documentation.
- ask the llm a ton of questions.
- and don't be intimidated, if you ask any good programmer LLMs are still not that good and mess up a lot.
- if you are learning just to learn then just have fun.
- but if you are on a deadline or need to make an app to solve a problem and you don't really care about, quality, security, or learning then just use cursor or aider to get the job done.
It’s like a calculator. You can use it. But you need to ensure your foundation is solid.
Otherwise you’ll become a bean counter doing what someone who actually understands math tells you to do. A mid.