I have an advice for everyone but this advice is targeting new devs.
I want you to know that the lifestyle of a developer is no much different from that of an author of a book.
You read voraciously and study keenly whether it is your code or someone else code... No code is a bad code when learning. As you get stronger, your instincts will help you out to decide which code is better.
When your back is against the wall, you have communities of developers everywhere to help you out but before seeking for help, read documentations a lot to see if you can resolve the issue first, so that you can understand the fix easily when provided by another dev, if the need be.
See yourself to be the captain of your ship. In other words, don't overload your ship with unnecessary baggage if not you would sink. In essence, your brain is your ship, so there is every chance you would be tempted to learn any technology you see online. It does not work that way. Focus on one thing and finish it or keep track of it, so you can return to where you stopped.
Sleep well often; spend time with your love ones; and exercise regularly. This is a lifetime journey but definitely you would be successful if you follow this advice.
Finally, know that even the experienced devs do ask questions often; hence, you as a beginner in this game, you're not alone in the learning process.
I wish you success.
Kind Regards.