dev.CodingConventions - tooll3/t3 GitHub Wiki

Coding Conventions

Return statements should be in a separate line

if (_midiEventCollection == null) return; //❌
if (_midiEventCollection == null)  //✔
     return;

Comments should start with an uppercase character

// looks like code
// Better 

No commented code without introducing comment

We're using git for version control and to keep backups of no longer needed variations and experiments. If you comment out a line of code, please remove it before committing. This is valid for c# and hlsl code alike.

If commented out code is useful for understanding existing code, please add a comment explaining why the code is commented out.