[Tutor] Many files or one big file?

Andrei Kulakov ak@silmarill.org
Wed, 3 Jul 2002 01:31:58 -0400


On Wed, Jul 03, 2002 at 12:12:18AM -0500, Nate Custer wrote:
> Hey all,
> 
> I am helping to write a tn5250 client in python. Right now we are coding
> the back end library. The team leader, who is new to python asked me
> this:
> 
> > This brings me to a question though.  Should the lib be all
> > implemented in one file as  you have it or in different files as I 
> > have been doing it.  Here is where you come in because I do not have 
> > the slightest idea of the benefits in python for doing one or the 
> > other.
> 
> I tend towards placing smaller related classes in the same file. But I
> do not have expierance writing a project of this size. What do you guys
> think the right way to do it is?
>
I'd say many smaller files, because the code tends to grow beyond your
estimates and then you end up with a 2.5k lines file that you have to
tear apart, like I did :-).

> 
> thanks,
> 
> Nate Custer
> -- 
> Gentlemen, [the equation  e^(i*pi) + 1 = 0 ] is surely true, it is
> absolutely paradoxical; we cannot understand it, and we don't know what
> it means. But we have proved it, and therefore we know it must be truth.
> 
> -Benjamin Peirce
>  
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org