Re: Proper architecture

2017-07-05 Thread Andrew Zyman
Cameron, took me some time to get to this. Waling down your comments: >...Normally I would have your DB class represent an open (or openable, if you wanted to defer that) database connection. So your main class would go: > def __init__(self, ...other args...): > self.db = DB(location="blah.sqli

Re: Proper architecture

2017-07-02 Thread Andrew Zyman
Cameron, This is much more than I hoped for. >From quickly looking over - most your notes are perfectly on target. Allow sometime to digest and reply. Thank you very much! On 2 Jul 2017 8:14 p.m., "Cameron Simpson" wrote: > On 02Jul2017 11:02, Andrew Z wrote: > >> I'd appreciate your suggestion

Re: Proper architecture

2017-07-02 Thread Cameron Simpson
On 02Jul2017 11:02, Andrew Z wrote: I'd appreciate your suggestions for a better approach to the following task. I have 2 files ( 2 classes). One (ClassA) has all logic related to the main workflow of the program. Another (DB), I like to offload all operations with a DB ( sql3 in this case).

Proper architecture

2017-07-02 Thread Andrew Z
Hello, I'd appreciate your suggestions for a better approach to the following task. I have 2 files ( 2 classes). One (ClassA) has all logic related to the main workflow of the program. Another (DB), I like to offload all operations with a DB ( sql3 in this case). I'm trying to pass the connect