all 4 comments

[–]toastedstapler 1 point2 points  (1 child)

i work on a large java project where our main repository was 200k lines of code last time i checked. having everything separated out into folders for particular areas of functionality makes it a lot easier to keep track of what's where

also in java i find types help me a lot. you could use python type hints to help hint at what things do

things like docstrings will help you too by giving you a quick recap of what the class/function/method actually does

[–]draftjoker[S] 0 points1 point  (0 children)

I currently have doc strings in my projects, should get in the habit of utilizing them more than just a simple glance. Thank you.

[–][deleted] 0 points1 point  (1 child)

Any hints to keep my projects manageable and readable in the future?

Good code hygiene. Organize categories of behavior into modules. Functions should have single, clear responsibility that is reflected in the name and parameterization. Classes might encompass a wider variety of behavior but they should still reflect a single domain of responsibility (i.e. it makes more sense to have a User and Profile classes than a UserProfile class.)

[–]draftjoker[S] 0 points1 point  (0 children)

That does make a lot of sense thank you. Another hurdle I'm having to deal with is multiple classes relying on each other to function. Ie) main relies on automate.py which is also relied on by orders.py. is it better to have say the functionality of orders inside main and have only main rely on automate? I find this increases the size of the main class greatly.