Time should be spent mastering any skill you are passionate about that will lead you to where you want to go in life, whether that is programming computers or something else.
If you are not sure where you want to go, spend your time trying as many new things (not drugs or illegal activities of course) and doing your best to be the best version of yourself until you find it. You are better and more capable that you think. Only commit to things that are meaningful to you and be kind to those you meet along the way.
You will find fulfilment in life in those opportunities that enable you to grow as a person -- learn, experience, appreciate and patience (LEAP), in your relationships and professionally, as well as in the ways you contribute to the lives of others.
It is through a regular practice of growth and contribution that you will be exposed to new and amazing opportunities in life… if you watch for them. Practice gratitude for who you are, what you have and what you can do every day.
Keep what is meaningful to you in all of this and save the rest of this advice for later in life when you are ready for it.