MVC - livecode separation of layers
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
MVC - livecode separation of layers
Does anyone have any advice on keeping layers separate? I try to use good MVC design and keep as much separated as possible. I am looking to create a clean Design [MVC (Model-View-Controller) MVVM (Model-View-View-Model) and MVP (Model-View-Presenter)].
UI <--> BLL <--> DAL
This 3 layer architecture should allow me to separate presentation for devices (iPhone, iPad, Browser, fat client) from the Business Logic Layer (BLL). The BLL would be able to reside locally or remotely on a internet server.
The Data Access Layer (DAL) which contains only the code needed to read/write from the database
which consumes the DAL, contains business rules, and validation,
This separation should allow for reusable components, flexibility as to placement of the layer, as well as multiple interchangable database types.
Thanks
E
UI <--> BLL <--> DAL
This 3 layer architecture should allow me to separate presentation for devices (iPhone, iPad, Browser, fat client) from the Business Logic Layer (BLL). The BLL would be able to reside locally or remotely on a internet server.
The Data Access Layer (DAL) which contains only the code needed to read/write from the database
which consumes the DAL, contains business rules, and validation,
This separation should allow for reusable components, flexibility as to placement of the layer, as well as multiple interchangable database types.
Thanks
E
Re: MVC - livecode separation of layers
I see that LC has the concept of include files (both locally and remote)
How do I use stacks with LiveCode Server?
http://lessons.runrev.com/s/lessons/m/4 ... ode-server
What is a Library and Why Do I Care?
http://livecode.byu.edu/messages/libraries.php
This is good and should encourage the separation of UI and code. I guess we can enforce a good MVC paradigm through proper discipline.
I understand that Apple restricts bypassing the App store and downloading of code from an internet server. If accurate, then that limits the usefulness of stacks with LiveCode Server. Is that accurate?
Can iOS use local library stacks? Is there any instruction on that?
Thanks
E
How do I use stacks with LiveCode Server?
http://lessons.runrev.com/s/lessons/m/4 ... ode-server
What is a Library and Why Do I Care?
http://livecode.byu.edu/messages/libraries.php
This is good and should encourage the separation of UI and code. I guess we can enforce a good MVC paradigm through proper discipline.
I understand that Apple restricts bypassing the App store and downloading of code from an internet server. If accurate, then that limits the usefulness of stacks with LiveCode Server. Is that accurate?
Can iOS use local library stacks? Is there any instruction on that?
Thanks
E
-
- VIP Livecode Opensource Backer
- Posts: 9847
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: MVC - livecode separation of layers
A library stack is just a stack with code. It can be included as a substack in the main stack file, or within the app bundle as a separate stack file.MrWizard. wrote:Can iOS use local library stacks? Is there any instruction on that?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: MVC - livecode separation of layers
Thanks.
Is it created through the client IDE or does one just use a text editor
E
Is it created through the client IDE or does one just use a text editor
E
Re: MVC - livecode separation of layers
Hi E,
[quote]Is it created through the client IDE or does one just use a text editor[/url]
I guess this is a question, although the question mark is missing...
Since we are talking about library STACKS, what do you think?
Best
Klaus
[quote]Is it created through the client IDE or does one just use a text editor[/url]
I guess this is a question, although the question mark is missing...
Since we are talking about library STACKS, what do you think?
Best
Klaus
Re: MVC - livecode separation of layers
Klaus wrote:Is it created through the client IDE or does one just use a text editor[/url]
Come on Klaus, the lack of a closing quote tag and the lack of a opening url tag.. tsk tsk..
Re: MVC - livecode separation of layers
It is very hot over here in sunny germanski!
Re: MVC - livecode separation of layers
Can't beat the blistering 12C over here
Re: MVC - livecode separation of layers
12° celsius?
HA, kids stuff!
It is over 35° celsius and raising here...
HA, kids stuff!
It is over 35° celsius and raising here...
Re: MVC - livecode separation of layers
I guess I forgot the sarcasm tags Yeah, I get to hear another German friend complain about the heat over there, so enjoy it
Re: MVC - livecode separation of layers
I really do! And that is not sarcastic or something