Practice With Real Projects: Find a client who needs something building. It doesn't need to be a big project, as long as you are getting experience completing real tasks
Engage With The Community: being part of a community of developers motivates you. Collaborating on projects can also help you to build teamwork skills, Also helps you learn from other developers on the project.
Build In Public: Building in public is good for learning to code because it allows for feedback, accountability, and the opportunity to showcase your progress and learn from others.
Learn One Thing At a Time: Trying to learn more than one language or framework at a time can be confusing. Don't try to spread your learning too thin, it will make it harder to retain information.
Take A Break: Taking a break is a best practice that helps your mental refreshment, error detection, increases productivity, creativity and innovation and Physical Well-being.