I learned the most from people when they shared their code with me. Especially if it was a person occasionally sharing their code over years and I could also see how differently they were doing things as they also matured.
1/
During my years in the lab, I observed that some people hoard their scripts and do not want to share or teach others.
I was the opposite. Although I was a beginner, I taught all that I knew and share my scripts with other lab members who were beginners too.