Coding style?

Asked by Victor Martinez

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:
Last query:
Last reply:
Revision history for this message
Victor Martinez (victored) said :
#1

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

Revision history for this message
Best David Gomes (davidgomes) said :
#2
Revision history for this message
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).

Revision history for this message
Victor Martinez (victored) said :
#4

Thanks David Gomes, that solved my question.

Revision history for this message
Victor Martinez (victored) said :
#5

Thanks Scott, I'll follow your advice.