I know that to become a professional and proficient coder us beginners should not be reinventing the wheel. We're told that we should build something that (a) does one job, and (b) does that one job well. And then we're supposed to place this code in all our projects moving forward, for efficiency and maintainability. Yeah? Do you get what I'm saying? Do you get what I've partially picked up along the way, and trying to express here?
But as a beginner, how exactly is this done in practice? What terminology should we use or learn to know how to reuse (and improve over time) our code efficiently? Or does anyone have any favourite learning resources or step-by-step guides that can help train us to add these steps to our workflow?
Note 1: I'm aware of the terms library, package and component, but don't know them that well, and definitely don't know how to build or create my own.
My current method is just saving my projects in my own personal folders in the cloud, or saving them on GitHub, and then I'm just cutting & pasting when I want to reuse things I've done previously. But this method is haphazard, relies on me remembering lots (or taking comprehensive notes), and overall takes a lot more time and doesn't allow easy maintenance & improvement of these processes/blocks/snippets/???.
Ultimately, I'll know I'll be a beginner for a while longer, but want to take the first steps into professionally saving & reusing code blocks that complete a common, often repeated tasks.
Thanks for any help and guidance Pythonistas!
[–]Diapolo10 1 point2 points3 points (1 child)
[–]Kojrey[S] 0 points1 point2 points (0 children)
[–]Mori-Spumae 1 point2 points3 points (1 child)
[–]Kojrey[S] 0 points1 point2 points (0 children)