-
Notifications
You must be signed in to change notification settings - Fork 3
/
STYLEGUIDE
31 lines (22 loc) · 1.1 KB
/
STYLEGUIDE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Pineapple Tracker Coding Style
------------------------------
We try to maintain a consistent style for readability. If you are coding
for pineapple tracker, generally try to follow what you see. Below are
some more specific guidelines.
Functions:
----------
Put opening curly-bracket on the same line, and no space between the closing
paren and the opening curly bracket.
static int void freqkey(int x, int y, int j){
}
No space between the closing paren and the curly bracket either. If there are
multiple arguements to a function, put one space after the comma, but not
before.
Document your functions! Put a coment above it that looks like this:
//\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/\\
\\\ < void drawsonged(int,int,int) > .|
/// Draws the song editor. .\
\\/\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\//
~=~~=~=~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~~=~=
STYLEGUIDE TODO:
* write something about how to name functions.