You Need a Private Code Repository
Your knowledge should not be allowed to rot away in your brain.
If being a software engineer is your day job, you’re probably all too familiar with using git repositories for your day job. You save all of their code. But what about the code you learn to use while on the job? Those little nuggets of wisdom you discover as part of our natural problem-solving process?
You need to have a personal git repository to ensure you don’t forget those particular little nuggets you learn, make room in your mind for new lessons, and make sure the next time you need to use this code, it’s easy to retrieve it.
Let’s dive more in-depth into those points.
Save Nuggets of Wisdom
One of the nuggets of wisdom I learned while developing a feature that required me to use the multiprocessing module in Python was the Process Executor and how it makes stuff easier and reduces joins and other maintenance in your code.
If I didn’t save an example of how to create a Process Executor, I’d be googling it again when I need to use it. Now, I no longer need to do that. I can go back to my notes and save that research time.
Repurpose For Future Consumption
One of the most important aspects of writing *good* code is the concept of loosely-coupled components.
When you save a piece of code for future use, you need to make sure to package it in the easiest way to include it in future projects. If you’ve just plucked the code from inside your repository and copied it, you’ll still need to “adjust” it for other projects that don’t work the same.
If, instead, you save it as a piece of code that can stand on its own (for example, a python module), then you’ll save a lot of time when using it in the future. It would also be less overwhelming to think you need to make those adjustments. Invest the initial effort to make the future use of this code effortless.
Make it Easy to Educate
Once you start documenting your wisdom code, you’ll realize you can share that code online and start educating and building a community around your journey to write better code and solve problems. A Developer with a community has more leverage than a developer without one. You could find yourself teaching online and making extra cash, too.
And also, the adage, learning is better when you teach, is accurate. If you teach the things you know, you’ll find they solidify better in your brain.
Conclusion
Today’s article discussed why you should start and maintain your own code repository. It would allow you to save time down the line on research, repurpose code to use in future projects, and make it easy to educate others who are searching for the same answers.
Do you maintain a private code repository? If not, what is holding you back? If you are, how is your experience using it? Let’s chat in the comments!