When i was writing Kotlin or Typescript, my way of organizing a project was to divide it into sub folders where each sub folder defines its own module, and the job of the main module was just to re-exports the sub-modules. With Julia i know dividing a project into submodules is not exactly the julian way of doing things, is preferable to have only one module per package that
includes multiple files. So, in my search to how better structure my projects i looked a packages like Makie, which has multiple sub-packages in the same repository. This kept me thinking that maybe dividing a package into multiple sub-packages may be a good idea, especially if the package has more than 15 files to
include, and i know some functionalities can be grouped together and isolated from the rest. But my project is not as massive as Makie is, and i’m not sure if the sub-packages will end up big enough to justify them being a whole package.
So, my questions are:
- It is fine to split up your package into multiple sub-packages?
- It is fine to create a whole new package even if it is small at the beginning?
- It is fine if the main package just reexports the sub-packages?