To date I had been developing only small Python scripts. They were not longer than 500 lines per each. Now I’m going to write something bigger – I think it will have about 1000 lines. Is it good idea to handle it in one file or is it good time to organize code in subdirectories? I found some advices on how to modularize code, but I can’t find any information about when to do that (or rather when it isn’t waste of time).
Share
I usually do it under these circumstances:
In general I try to go for reusability. If I cannot divide it into reusable parts I don’t divide except it would get too large.