mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 19:17:27 -04:00
Updated CodeConventions (markdown)
parent
dee7fbcbd8
commit
0c24523368
@ -9,7 +9,7 @@ Lua
|
|||||||
- Do use brackets in functions calls even if it's not necessary.
|
- Do use brackets in functions calls even if it's not necessary.
|
||||||
- Name variables for what they are, don't include type markers in them, i.e. *do not* use Hungarian notation.
|
- Name variables for what they are, don't include type markers in them, i.e. *do not* use Hungarian notation.
|
||||||
- Nice to have: sort your requires alphabetically (OCD!)
|
- Nice to have: sort your requires alphabetically (OCD!)
|
||||||
- Only comment if it's something complicated/non obvious. Keep in mind that comments increase file size, which increases the amount of ram required to run your program!
|
- Only comment if it's something complicated/non obvious. Keep in mind that comments increase file size, which increases the amount of RAM required to run your program!
|
||||||
|
|
||||||
Bad:
|
Bad:
|
||||||
```lua
|
```lua
|
||||||
|
Loading…
x
Reference in New Issue
Block a user