Hi,
After viewing several .Net, AspMVC, and RubyOnRails training videos the instructors are all talking about a full separation of concerns where there are essentially 3 areas (presentation, business logic and data) where each are totally separate from each other which makes it easy to change either part to a different technology. Such as switching front ends or back ends without changing anything else.
So, now I'm thinking about how I would achieve this in VFP where VFP is known for its tightly coupling these data, business logic and presentation layer stuff. So, how can I totally achieve total separation of the 3 layers in VFP?
I know that I can:
1) talk to the data layer via odbc,
2) let the middle layer (business logic) query the data layer and build cursors and apply the business rules to them,
3) then let the front end layer further massage the data and present the data to the user.
I've done the 123 stuff above, but never with full separation as there was always something bleeding from one layer to another. I've seen this stuff taught in VFP in the past, but I've never understood how to make all 3 layers independent of each other. Any thoughts concerning this is highly accepted, and thanks...
Stanley
After viewing several .Net, AspMVC, and RubyOnRails training videos the instructors are all talking about a full separation of concerns where there are essentially 3 areas (presentation, business logic and data) where each are totally separate from each other which makes it easy to change either part to a different technology. Such as switching front ends or back ends without changing anything else.
So, now I'm thinking about how I would achieve this in VFP where VFP is known for its tightly coupling these data, business logic and presentation layer stuff. So, how can I totally achieve total separation of the 3 layers in VFP?
I know that I can:
1) talk to the data layer via odbc,
2) let the middle layer (business logic) query the data layer and build cursors and apply the business rules to them,
3) then let the front end layer further massage the data and present the data to the user.
I've done the 123 stuff above, but never with full separation as there was always something bleeding from one layer to another. I've seen this stuff taught in VFP in the past, but I've never understood how to make all 3 layers independent of each other. Any thoughts concerning this is highly accepted, and thanks...
Stanley