[Tutor] Python OO

Juan C. juan0christian at gmail.com
Sun Mar 29 03:32:54 CEST 2015


On Sat, Mar 28, 2015 at 10:26 PM Mark Lawrence <breamoreboy at yahoo.co.uk>
wrote:
If your classes are small put them in one source file, which is clearly
simpler than your proposed structure. Why over-engineer something if
there is no need to?

Well, my classes won't be that small, and separating them by modules would
be easier to maintain, and after all, it's only 4 modules, not 10-15.

My actor related methods should be set apart from my movie, serie related
ones, don't you agree?

Having all the classes (Actor, Movie, Serie) in one module would make it
200, maybe 300 lines long.


More information about the Tutor mailing list