Code Guidelines - SpectralCascade/Ossium GitHub Wiki

Basic Guidelines

  1. Indentation brackets { and } should always be on a new line (for sake of consistency) with the exception of inline constructors and lambda functions.
  2. Wrap new classes and files with the Ossium namespace, and use inline namespaces such as Graphics where appropriate.
  3. Cache the count when using for loops, e.g. for (int i = 0, counti = myarray.GetSize(); i < counti; i++)
  4. Please use PascalCase for classes, methods and functions. camelCase is fine for members and variables. Avoid using underscores (though this is acceptable for some internal members etc.).