Becoming a better developer requires a certain level of self-criticism and willingness to improve and learn. Just writing (lots of) code alone will not.
Writing lots of code will make you a better developer if you lack the experience, but you will plateau if that's all you do.
And delivering pizzas will make you a better driver. But it's not a good career choice.