lists at mangomultimedia.com
Mon Feb 4 10:27:52 CST 2008
On Feb 4, 2008, at 10:51 AM, Josep wrote:
> I'm programming a stack to help to create webpages with products
> using the
> one free shopping cart processor. I like to share some functions to
> databases. How is the best way? Use libraries, frontscript,... How I
> organize my project at stacks level.
> s_main.rev <-- Main Stack
> s_add_product <-- Substack of s_main
> s_add_family <-- Substack of s_main
> s_add_customer <-- Substack of s_main
> s_lib_functions.rev <-- Stack with functions
> Is a good organization?
Your design looks fine. I prefer the library approach which means you
would "start using" the s_lib_functions.rev stack so it is available
to all scripts. Libraries usually make the most sense for general
handlers you want to be globally available.
> Some other way to do the same?
You could make s_lib_functions.rev a substack of s_main.rev. If you
have more than one library stack you could also create a
"libraries.rev" stack on disk and make s_lib_functions a substack of
the library stack. In the end you would get the same result though.
Blue Mango Learning Systems
www.bluemangolearning.com - www.screensteps.com
More information about the use-livecode