From: Robert J. <spa...@gm...> - 2011-03-03 20:38:28
|
Hey Florian, 2011/3/3 Florian Jung <flo...@we...>: > Hi > > as i seemed to have got into muse far enough to be able to write first > tries of a score viewer (the editor is coming later ;) ), Hey, sounds great! > i noticed that > muse uses some (to me) weird coding style > > first, i find the bracket-setting {} quite strange; i'd prefer the > following: > int main() > { > do_stuff(); > } > instead of > int main() { > doStuff(); > } // i hope the email system doesn't strip the whitespaces > > second, i am unused to CamelCase; i'm used to under_scores, and when i > write without thinking, i produce some_function instead of someFunction ;) > > are there any rules for coding style in the muse project? or can i write > the code as i like it? There are no explicit coding styles no and there are probably quite a few intermingled in the internals. Most of it is just trying to continue with the style Werner used initially. The example you bring up with spaces before the last brace that is actually something I am not particularily fond of myself and I often remove the spaces since I don't find it particularily readable. As for using under_scores, I would prefer keeping to camelCase but chosing between noCode and lots_of_code, I will go for the latter ;) Regards, Robert |