-
Notifications
You must be signed in to change notification settings - Fork 80
Code Guidelines
John Michael Gross edited this page Jul 6, 2017
·
5 revisions
- Types: PascalCase
- Prefix interfaces with "I"
- Methods: PascalCase
- Non-Private Members: PascalCase
- Private Members: _camelCase
- No public fields except for consts, use properties instead
- No stateful static types. These are a pain to clean up, static types should not store any information.
- Use dependency injection when possible. Most Torch code uses constructor injection.