Package or schema inheritance - pros and cons
Posted: Fri Aug 07, 2009 11:33 am
by Barry Williams >> Wed, 25 Jan 2006 21:15:17 GMT
I am just starting to use Jade for a new development project and have a question for experienced Jade developers. I want to develop some core modules that are common to most applications, eg: GL, Invoicing, statements/receipts, client/staff details, security module, etc. Looking at the options, there are two obvious approaches that could be taken.
1. Have a common superschema with these common modules and then create subschemas to add the application specific modules and any application specific customizations that may be required to the common modules inherited from the superschema.
2. Create the modules in stand-alone schemas and then import them as packages into the application specific schemas.
What experiences have other developers had with these two approaches and what are the pros and cons that you have encountered with each approach. Are there any modules that you have found lend themselves better to each approach and therefore using a combination of both options is appropriate. eg: Are packages most suited where the problem domain being solved is well defined and extending the behavior for specific applications is unlikely to be required.
Thanks for your time and I look forward to your comments and advice.
I am just starting to use Jade for a new development project and have a question for experienced Jade developers. I want to develop some core modules that are common to most applications, eg: GL, Invoicing, statements/receipts, client/staff details, security module, etc. Looking at the options, there are two obvious approaches that could be taken.
1. Have a common superschema with these common modules and then create subschemas to add the application specific modules and any application specific customizations that may be required to the common modules inherited from the superschema.
2. Create the modules in stand-alone schemas and then import them as packages into the application specific schemas.
What experiences have other developers had with these two approaches and what are the pros and cons that you have encountered with each approach. Are there any modules that you have found lend themselves better to each approach and therefore using a combination of both options is appropriate. eg: Are packages most suited where the problem domain being solved is well defined and extending the behavior for specific applications is unlikely to be required.
Thanks for your time and I look forward to your comments and advice.