Flex: Modules v/s Components for a large scale project
I am planning on a Flex project that involves incorporation of a lot of features.
Each 'feature' can开发者_高级运维 be a component / module.
Which is preferred and what is the difference between a module and a component?
Thanks
The short answer is that it depends.
If you going to use all, or most, of your components during regular execution of the application - components would be alright.
By the sounds of things though, modules might be the better bet for your project.
Modules allow you to group components into external libraries (RSLs). These libraries can be embedded into your application (through project settings) or can be loaded dynamically at runtime (as separate files).
Modules would give you some benefits
- Only loading the libraries needed (as needed) instead of all modules everytime.
- Load only core modules initially to speed up the initial load time.
- Changes to a component do not require you to recompile the application/
Find out more about creating modules here.
精彩评论