It appeared, that I have in my pet project two abstractions: asset loaders and drawing tasks. For each abstraction I have some classes representing them (currently a single class for drawing task abstraction and factory, which returns new classes, for asset loaders), a store (formerly a manager, but I found it is a bad practice to use "Manager" word in naming) and some other helpers (e.g. decorators). I am thinking how to put all this in a project structure. When I started the project, there was a folder for abstraction itself, separate folder for stores, and another one for helpers. Currently I realized, that this two systems are actually parallel, and hence should be developed separately. So I decided to create to folder for each.
So what I am interesting it:
- How do you split your files in directories:
- By use
- By abstraction they describe
- By language construction types (i.e. classes, functions)
- Something else
- How do you name them:
- you use some words, representing it is a group (i.e. assetLoadersSystem, assetLoadersUtils ...)
- you name it as main concept (just assetLoaders directory with the same file in it)
Is there any place I can read about it? I found some interesting chapters in "Clean code" and "Code complete" about variable naming tips. Is there anything like that for my problem?