Difference between revisions of "HowTo:Design a Customizing"
m |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
As a prerequisite for the rest of this article, please consider the following guide: | As a prerequisite for the rest of this article, please consider the following guide: | ||
[[HowTo:Organize_UBIK_Development]] | [[HowTo:Organize_UBIK_Development]] | ||
+ | |||
+ | The above article describes how to manage your project organizationally, but only implicitly covers how to deliver a solution to your problem. | ||
+ | Assuming you have set up issue tracking, source code management and documentation, the following steps are recommended. | ||
+ | |||
+ | === For the start of a project === | ||
+ | # Collect the requirements from the customer | ||
+ | # Negotiate a functional specification with the customer, to define the scope of the project | ||
+ | # Design the top-level architecture | ||
+ | # Use the top-down approach to create a Project Structure Plan consisting of Epics, Features and User Stories | ||
+ | # Make an effort estimation based on the Project Structure Plan to negotiate a budget with the customer | ||
+ | |||
+ | === For a topic throughout the project === | ||
+ | # Collect the requirements for that topic from the customer or project leader | ||
+ | # Create a functional design | ||
+ | # Create a technical design | ||
+ | ## For the choice of appropriate {{UBIK}} tools and features, search the Wiki as described in the respective section | ||
+ | ## Plan the architecture of your solution | ||
+ | ## Design a data model | ||
+ | ## Design the algorithm | ||
+ | # Perform the implementation | ||
+ | # Perform the QA including manual testing, automatic testing and reviews | ||
+ | # Update documentation | ||
+ | |||
+ | 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 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. |
− | On task level, architecture | + | |
+ | === Topology === | ||
+ | In this context, topology (the science of spatial relations) addresses the technical architecture. Questions: | ||
+ | * What top-level modules do exist where? | ||
+ | ** in the network | ||
+ | ** in the customizing | ||
+ | * What interfaces do exist between them? | ||
+ | ** using which protocol | ||
+ | ** 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? | ||
− | We recommend the architecture to satisfy the following restrictions | + | === 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.