NS Application Development
Developing applications is more involved than just defining a model in the Prime Radiant. In this section, we describe the various aspects that come into view when developing an NS application.
The NS Design Theorems
In order to correctly develop a NS system, it is important to keep the NS theorems in mind. Not correctly applying them will result in code which does not follow the NS principles.
The NS Elements Architecture
When expanded, an NS application is divided in 6 layers. This layered architecture can be thought of as orthogonal to the meta model, as every element will have some artifacts in each layer. There are 6 layers. As a convenience, a complete list of all the options of each element is provided
Crafting NS Custom Code
Some aspects of NS applications have concerns beyond the meta model and element artifacts. These can be classified in two categories: crafting customizations and extending the framework.
NS Theory and Testing
According to Normalized Systems Theory, it is imperative to avoid the multiplicative explosion of combinations for any task that needs to be performed or artifact that needs to be maintained. This of course, is very relevant for software testing. Suppose that you aggregate or sequence 3 consecutive tasks, and want to distinguish and test 10 possible scenarios for every task. In case you want to emulate and test all possible scenarios on the level of the aggregated or complete flow, you have to consider 1000 scenarios. In order to avoid this multiplicative combination of scenarios, one needs to adopt an hierarchical testing strategy. This implies a clear separation of the three tasks, and a thorough testing of the 10 scenarios on each task. On the aggregation level, one needs to identify a number of representative aggregation scenarios with corresponding test data. Suppose a number of 10 aggregation scenarios as well, this would correspond to 40 test scenarios in total.
It is important to realize that the multiplicative combination of scenarios will, in reality, not be limited to 1000, but will easily become unbounded. Indeed, the number of artifacts or tasks, will in general be much larger, and serves as the power to which the number of scenarios is elevated. This means that a complete or nearly complete test coverage without a hierarchical test strategy is simply impossible. Therefore, thorough testing has to be based on an hierarchical strategy, on some kind of testing pyramid. Now, the Normalized Systems software approach provides such a hierarchical structure, and should be leveraged to create such a systematic hierarchical testing pyramid, based on the NS structure and its elements.
The same style of reasoning should be applied to the generated or expanded code. Though it would be possible to generate standard testing code for most of the generated code, such as the CRUDS operations of the various data elements, this would lead to a huge amount of testing code. Therefore, the hierarchical testing strategy should be extended to include the expanded code. For every version of the NS expanders, extensive testing should be performed for all basic operations of the various elements, for all possible data types and all supported technology frameworks. This requires the creation of a structured set of test data, featuring elements containing all possible data types and settings selecting all supported technologies. However, such a structured approach would suppress the need for testing all basic operations on all elements of the expanded code.