Good morning,
I will be having many subclasses, subclasses of subclasses, and so on. How to name them properly in order to avoid a mess in naming and make them consistent?
I mean, I could do this:
- Animal -> LargeAnimal -> LargeAnimalFromMeat
- Animal -> LargeAnimal -> SimplifiedLargeAnimal
i.e. now subclasses are readable, but there is no consistency, so when you see an unknown class for you, you must read all its name to understand its purpose.
I also can name them this way:
- Animal -> LargeAnimal -> LargeAnimalMeat
- Animal -> LargeAnimal -> LargeAnimalSimplified
It better, but now its harder to read. There may be classes like "LargeAnimalRed" instead of "RedLargeAnimal" that is much more readable.
So I see the third option:
- Animal -> Animal_Large -> Animal_Large_Meat
- Animal -> Animal_Large -> Animal_Large_Simplified
- Animal -> Animal_Large -> Animal_Large_Red
Now they have Name + Group + Modification, i.e. you see all options and do not need to determine what is what, but I did not see such naming convention.
What do you think about this question and examples?
Is the third variant is acceptable in the community?