Part 2 of refactoring a Fortran test framework from a single 400-line module into smaller, well-organized modules. The post covers splitting derived types into their own modules, building a dependency graph, creating a facade module that re-exports public elements for a clean user API, using submodules to hide implementation details, and finally publishing the framework as a reusable FPM package on GitHub. Key benefits discussed include easier navigation, stable public interfaces, and incremental recompilation advantages.
Sort: