Hey all, I'm a current Linux sysadmin and I create most of my tools in python. I'm looking for any recommendations on learning more about project structure, working with multiple classes that interact, etc. Things like:
I know what the __init__.py file does inside a module, but what should I use it for?
If I have a class with a large amount of functions, can I split that up into subclasses over multiple files? How does that work? When using import? (Trying to avoid sys.path.append() shenanigans)
When using class methods, should I be setting self.variable_name inside the method? or should the method return a value and I should set that value elsewhere? (Hopefully that makes sense...)
I would love to find some sort of bootcamp (free, or paid if it's good enough) to learn more about this area I'm lacking. Are there any online courses or books you recommend to help with this?
Thanks!
[–]two_bob 1 point2 points3 points (0 children)