Is copying code a good way to learn programming?

0
10
Asked By CuriousCoder42 On

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

Answered By KnowledgeSeeker85 On

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!

Answered By CodeSleuth99 On

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!

Answered By TechExplorer77 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.