Coding style?

Asked by Victor Martinez on 2011-12-02

When looking at the code of BeatBox, many parts seem to follow the Java coding style (camelCase for variable and function names, etc...). Having a C background, I tend to use lower_case_function_names() and lower_case_variable_names. The official Vala documentation uses a coding style very similar to C as well.

So, my question is, what is the preferred coding style for the project?

Question information

Language:
English Edit question
Status:
Solved
For:
BeatBox Edit question
Assignee:
No assignee Edit question
Solved by:
David Gomes
Solved:
2011-12-04
Last query:
2011-12-04
Last reply:
2011-12-02
Victor Martinez (victored) said : #1

BTW, it would be nice to have coding guidelines in the HACKING file.

Scott Ringwelski (sgringwe) said : #3

Use the elementaryos guidelines. BeatBox was started well before any guidelines were in place, and I tended to follow no particular pattern (unfortunately).

Victor Martinez (victored) said : #4

Thanks David Gomes, that solved my question.

Victor Martinez (victored) said : #5

Thanks Scott, I'll follow your advice.