Difference between revisions of "HowTo:Design a Customizing"
m |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
Make sure to maintain the Project Structure Plan for non-trivial tasks. In the rest of this article, best practices for the individual steps are described. | Make sure to maintain the Project Structure Plan for non-trivial tasks. In the rest of this article, best practices for the individual steps are described. | ||
+ | |||
+ | = Functional design = | ||
+ | |||
+ | Based on the requirements collected by the customer, we can create a Functional Design (FD). Such a description suggests what a solution should look and behave like. FDs are of paramount importance in a project, because they nail down the scope of a use-case or task. Functional specifications are great to negotiate specific goals with the customer, allowing us to design a technical solution and to estimate the effort. Optimally, an FD contains: | ||
+ | * A description of the use-case | ||
+ | * Mock-ups of the UI (if any) | ||
+ | * A diagram of the workflow (without technical details) | ||
+ | |||
+ | Often, tricky questions are encountered when making a Functional Design. This means we're doing it right, because without an FD, the same questions would appear during implementation, when it's too late. Better to resolve these questions with the customer or the project leader before we start working on the issue, allowing us to adjust our estimate in time. | ||
+ | |||
+ | = Technical design = | ||
+ | |||
+ | Based on the FD, a Technical Design (TD) can be created. Such a concept elaborates on how to provide a suggested functional solution, technically. TDs can greatly reduce the time spent on an implementation, because it allows us to avoid spending the time going down a wrong path by looking ahead, speaking metaphorically. It should address several aspects: | ||
+ | * Architecture | ||
+ | * Data model | ||
+ | * Algorithm | ||
+ | These aspects are described in greater detail in the following chapters. | ||
= Architecture = | = Architecture = | ||
The architecture is something to consider on a rather abstract level, in the beginning of a project, but also on the level of a single task. | The architecture is something to consider on a rather abstract level, in the beginning of a project, but also on the level of a single task. | ||
− | In the context of a whole project, architecture means defining whether there are multiple {{UBIK}} installations on different sites, what products will be involved and how they are connected topologically and semantically. In this context, topology addresses the technical architecture. Questions: | + | In the context of a whole project, architecture means defining whether there are multiple {{UBIK}} installations on different sites, what products and 3rd party systems will be involved and how they are connected topologically and semantically. On task level, the same is interesting, just in greater detail and smaller scope, like zooming in on it. |
+ | |||
+ | === Topology === | ||
+ | In this context, topology (the science of spatial relations) addresses the technical architecture. Questions: | ||
* What top-level modules do exist where? | * What top-level modules do exist where? | ||
** in the network | ** in the network | ||
Line 42: | Line 62: | ||
** using which protocol | ** using which protocol | ||
** covering what data | ** covering what data | ||
− | |||
− | |||
− | |||
− | + | === Semantics === | |
+ | Semantics (the science of meaning) in this context addresses the functional architecture: which task-level modules are taking care of what responsibility, and how they play together. Questions: | ||
+ | * What is the purpose of a module? | ||
+ | * What information is exchanged via an interface, what does it do for the use-case? | ||
+ | === Restrictions === | ||
We recommend the architecture to satisfy the following restrictions. | We recommend the architecture to satisfy the following restrictions. | ||
− | === Top-Level architecture === | + | ==== Top-Level architecture ==== |
* Network-distances between the database server and the application server (e.g., web services) should be minimal for performance reasons. | * Network-distances between the database server and the application server (e.g., web services) should be minimal for performance reasons. | ||
* One should always plan for a staging strategy with multiple environments for QA. | * One should always plan for a staging strategy with multiple environments for QA. | ||
− | === Task-level architecture === | + | ==== Task-level architecture ==== |
* Custom code should always be developed in a plugin where possible, with the {{UBIK}} custom code just connecting the plugin code with the {{UBIK}} objects. | * Custom code should always be developed in a plugin where possible, with the {{UBIK}} custom code just connecting the plugin code with the {{UBIK}} objects. | ||
* Custom code should be arranged so heavy-duty processes (involving much data and complex calculations) are performed on powerful machines (and not on the mobile client). | * Custom code should be arranged so heavy-duty processes (involving much data and complex calculations) are performed on powerful machines (and not on the mobile client). |
Latest revision as of 08:51, 14 August 2023
Customizing UBIK® is a complex endeavor. In this article, we aim to provide a guide and best practices making this task as straight-forward as possible.