Where should the resource files be stored and with what level of detail (application / assembly / namespace / class / ...)?
The use of multi-level architecture allows you to divide applications into separate dedicated assemblies. The advantage is that it is easier to manage dependencies and ensure that the code is not confused.
During refactoring of widespread use, fragments can be divided into separate assemblies or moved to their own assembly. This can happen due to the fact that the functionality is ripe enough to move to the main layer or become large enough to guarantee its movement to its own assembly.
During refactoring, a resource can be moved. This can be more or less complicated depending on the strategy used to group resources and the type of refactoring. Resources (lines, images, files, etc.) could be grouped in several ways: - in one resource file per assembly, - in a resource file per namespace inside the assembly, - in a resource file for each class, - in a single assembly shared by all assemblies in the application - etc.
Refactoring is just one operation that can be affected by the selected resource grouping strategy. Other operations, such as line feeds in resource files, will also affect.
Which grouping strategy is considered the best and why?
source
share