mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
Add line break and fix word
This commit is contained in:
parent
c32845d507
commit
d5857d841f
@ -119,7 +119,8 @@ Start reading our code and you'll get the hang of it. We optimize for readabilit
|
||||
Fields and methods in a class are private by default, no need to use the private keyword there.
|
||||
* This is open source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers the goal is to make the ride as smooth as possible.
|
||||
|
||||
**One Python Way**
|
||||
**The Python Way**
|
||||
|
||||
Unlike Python, C# has different ways to do the same thing, which causes endless discussions and pull requests to change from one way to the other. Let's always use the most simple, most obvious way:
|
||||
* **type** vs. **var**: always use 'int x' instead of 'var x'. Less guess work. Less magic. If we **always** use the proper type then we have to waste no brain cycles on unnecessary decision making.
|
||||
* **if** vs. **switch**: any if statement could be converted to switch and back. Again, let's not have endless discussions and use if unless _switch_ makes overwhelmingly much sense. Python doesn't have switch either, they don't have those discussions and pull requests over there.
|
||||
|
Loading…
Reference in New Issue
Block a user