-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoding style guidelines.txt
11 lines (8 loc) · 1.11 KB
/
coding style guidelines.txt
1
2
3
4
5
6
7
8
9
10
11
I don't really care about coding style in general. As long as the code works, fine. However, there are a few things that can bug me if noticed. Check your IDE or text editor's settings for the following:
//Actual coding style stuff
1- Indent using tabs, not spaces. Tabs have adjustable widths.
2- Braces. Not a huge deal, but do try to use the 1TBS: http://catb.org/jargon/html/0/one-TBS.html
//Other stuff I just feel like mentioning
1- Line endings. For cross-platform readability, all line endings should be in the CRLF format. My copy of CodeBlocks is set to automatically enforce this.
2- Text encoding. Use Unicode for all text files. UTF-8 is preferred. (If you don't notice what encoding your editor uses, don't worry about it because chances are I won't notice either - and if I do, I'll just fix it for you).
Just remember this: If there's a bug in the program, or if we disagree on coding style, or one of us just makes some bone-headed mistake, nobody's going to die because of it. This is a game, not a pacemaker or bomb defuser. Nothing you do here will cause the Federation to collapse or galaxies to explode.