Have fun and learn when you need it, and work to earn when you need it. I see no harm in both.
But it might be better to have some fun in a while (it does not have to be writing code), so you do not feel like you are trapped in an endless rat-race (99.9% are in the rat-race). Having fun would also reduce the probability of burning out / going deep into depression.
But it might be better to have some fun in a while (it does not have to be writing code), so you do not feel like you are trapped in an endless rat-race (99.9% are in the rat-race). Having fun would also reduce the probability of burning out / going deep into depression.