Update CONTRIBUTING.md

This commit is contained in:
vis2k 2021-03-09 16:19:25 +08:00 committed by GitHub
parent 71e7393278
commit d4cff291f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,9 +132,11 @@ If your optimization pull request does not come with profiling data showing real
Start reading our code and you'll get the hang of it. We optimize for readability:
* We indent using 4 spaces (soft tabs)
* 4 spaces isntead of tabs
* We value simplicity. The code should be easy to read and avoid magic
* No abbrevations. Use 'parentBody' instead of 'pB' or similar
* XML summary comments as one liners. short and simple for intellisense.
* Use string interpolation like $"name = {name}" instead of "name = " + name
* **KISS / Occam's Razor** - always use the most simple solution.
* **No Premature Optimizations**
MMOs need to run for weeks without issues or exploits.