Moving to an OOP model from an classically imperitive one

tim.thelion at gmail.com tim.thelion at gmail.com
Thu Apr 24 03:32:48 EDT 2014


> I'm curious what these practical reasons are.  One my smallest source files has 870 lines in it, my largest nearly 9000.
> 
> 
> 
> If the problem is your editor, you should seriously consider switching.
> 

I think that the main reasons for doing so are as follows:

git status provides much more usefull output when the source files are separate.  If all your code is in one file, than git status tells you nothing about what has changed, yet git diff will provide you with overly verbose output.

The seccond reason is that when refactoring code, it is much easier to manage a todo list when one knows which files have been processed already/what needs to be processed.  This is especially true if the refactor will take several days or be done by several people.

Tim



More information about the Python-list mailing list