Another large project question
Posted: Sat Jul 20, 2013 4:41 pm
I'm organizing my library stacks for what will be a large, evolving project. I'm new to livecode, but have had lots of experience with other authoring software and am keenly aware that I may make organization decisions that prove to be cumbersome later.
I've pondered two ways of organizing my project, and wonder whether one of them might get me in trouble later. I want to build a project that can easily transform into an iPad app. I'm including the sub projects (Data exploration, drawing tool, writing tool) as substacks that use the various libraries.
The one I'm trying now is to have my library stacks as separate mainstacks. This has the advantage that they are external and can be used on other projects. If one of my sub projects requires a library, it loads it and when it quits, it destroys libraries that are only used by it. In fact, if my sub projects get large, perhaps they may become separate mainstacks.
The other strategy is to put all library stacks as substacks. This ties them to the main project and they are loaded automatically when the project loads. The overall project seems simpler and I can always extract the substack libraries for use in other projects.
Is there a memory consequence to either approach? It seems that putting everything in substacks is simpler, but the substacks may always reside in memory, which could be an issue for mobile apps.
Is there any other "gotcha" That I haven't thought about?
I've pondered two ways of organizing my project, and wonder whether one of them might get me in trouble later. I want to build a project that can easily transform into an iPad app. I'm including the sub projects (Data exploration, drawing tool, writing tool) as substacks that use the various libraries.
The one I'm trying now is to have my library stacks as separate mainstacks. This has the advantage that they are external and can be used on other projects. If one of my sub projects requires a library, it loads it and when it quits, it destroys libraries that are only used by it. In fact, if my sub projects get large, perhaps they may become separate mainstacks.
The other strategy is to put all library stacks as substacks. This ties them to the main project and they are loaded automatically when the project loads. The overall project seems simpler and I can always extract the substack libraries for use in other projects.
Is there a memory consequence to either approach? It seems that putting everything in substacks is simpler, but the substacks may always reside in memory, which could be an issue for mobile apps.
Is there any other "gotcha" That I haven't thought about?