Difference between revisions of "OpenCine.Coding Guidelines"
From apertus wiki
(Created page with "In order to help everyone understand easily the code, it must adhere to a certain style: * Private attributes should be prefixed with an underscore ( _ ). ** float _posX * In...") |
|||
Line 1: | Line 1: | ||
In order to help everyone understand | In order to help everyone easily understand the code, it must adhere to certain style rules: | ||
* Private attributes should be prefixed with an underscore ( _ ). | * Private attributes should be prefixed with an underscore ( _ ). |
Latest revision as of 10:39, 6 July 2018
In order to help everyone easily understand the code, it must adhere to certain style rules:
- Private attributes should be prefixed with an underscore ( _ ).
- float _posX
- Interfaces should be prefixed with an upper case I.
- IProcessor
- Variables or attributes should start with a lower case letter and methods, classes, or interfaces with an upper case letter,
- int frameCount, void Process(), class FrameProcessor
- Curly braces should be always placed, even for single lines in if statements.
See also