Re: Best practice for large source code projects

2006-09-22 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > It works and things make sense to me. Yet, I feel uneasy that my > model.py file is starting to approach 500 lines. What's the best > practice or community opinion on this? Do I keep everything in a single > file or do I start dividing things into s

Re: Best practice for large source code projects

2006-09-22 Thread faulkner
several of my programs are thousands of lines long, and i don't think they're extravagantly large. i'd say you should use modules the same way you use classes and functions: to separate code logically. if it makes sense to think of a group of statements as a function, you make it a function. if it

Best practice for large source code projects

2006-09-22 Thread [EMAIL PROTECTED]
I'm developing a web system and based on some patterns I've seen elsewhere, I made a single file (model.py) to hold all of the functions and classes that define the model porition of the application. Hence the code in the controller looks like: import model def Display(req,id): # It wor