I've been learning to code for about a month and a half. When I work on exercises, I usually come up with my own solutions, even if they aren't the most efficient. Afterward, I often check out other people's answers or ask an AI for help. I'm wondering if this approach is a bad idea and if I should focus more on figuring things out by myself. Sometimes, no matter how much I try to come up with a better solution, nothing really comes to mind. What do you think?
5 Answers
When you notice a more elegant solution, it can be beneficial to think of reasons to adopt that method instead of simply using it. Try to grasp the differences; it’ll help solidify your understanding! You might not know about simpler methods yet, which is why looking at others is so valuable.
You're definitely not alone in this! Most people learn by looking at how others tackle similar problems. Just make sure you don’t just copy-paste; instead, try to rewrite their solutions from scratch. That’s where the real growth happens. You'll start to see improvements in your own work as you grasp those concepts better.
It's totally fine to check out other approaches after you've solved the problem your way. This can really help you improve your skills! The key thing is to make sure you understand why those alternative solutions are better, rather than just copying them. Keep experimenting, and don’t hesitate to use what others have done to learn from it!
Any solution that meets the requirements is valid! It’s about progressive learning. Checking out how others solve similar problems can introduce you to new ideas and methods you weren’t aware of. Just keep practicing and refining your approach!
Remember, a functional solution is better than a perfect one at the beginning. After you've built a foundational solution, revisit it and refine it over time. Keep at it, you'll notice improvements in your coding style as you progress!

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