I've been wondering about the best ways to learn programming, especially since I find myself often getting stuck. I sometimes resort to asking AI for help, where I copy the code it generates, then go through each line to understand it. If I come across a helpful Stack Overflow post or documentation, I might copy from there as well. I then play around with the code afterward. I'm curious if this approach is effective for actually learning programming. What do you think?
3 Answers
I'd agree, this isn't a great learning method. If you find yourself copying a lot of code, it could mean you're missing some foundational skills. Instead of relying solely on other people's solutions, try to build your understanding from the ground up. Dig into problems and learn how to apply your knowledge to find solutions. Messing around with code is a good start, but don’t offload all the thinking to someone else!
Copying solutions from anywhere—AI, Stack Overflow, or documentation—might not be the best way to truly learn. At the end of the day, if you're just reproducing code without understanding it, you're not actually developing your skills. It's important to engage your brain and try solving problems on your own to really learn programming. Think of it like lifting weights; just watching others lift won’t build your muscles—practicing yourself will!
Using AI for coding definitely speeds things up, but for learning, you should ask yourself, 'Am I really learning?' Building projects and experimenting is key. Start with simple apps and gradually increase the complexity. Watching crash courses can help you get familiar with syntax before diving into actual coding. ChatGPT should be a tool, not a crutch!

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically