The Terrarium codebase tries to follow a few simple guidelines as far as formatting goes:
- All names (classes, methods, variables) make sense and are descriptive
- Public methods use PascalCase
- Private member variables are prefixed with an underscore to make them stand out from local variables or parameters
- Private methods use camelCase with the first letter being lowercase
- Enumerations and constants use descriptive names (e.g. AnimalSkinFamily rather than ANIMAL_SKIN_FAMILY)
- Methods should try to keep the size down to a single page when editing (about 30 lines)
- Public SDK methods (i.e. anything in OrganismBase.dll) are fully documented (with examples where possible)