Serving the Quantitative Finance Community

 
User avatar
DevonFangs
Posts: 0
Joined: November 9th, 2009, 1:49 pm

donations

October 4th, 2011, 8:08 am

Silly thing, but should we stick to a style guide like Google's one?I find that sometimes annoying and maybe we could consider some modifications, but it'd be good to have some homogeneity.
 
User avatar
Cuchulainn
Posts: 22926
Joined: July 16th, 2004, 7:38 am

donations

October 4th, 2011, 8:52 am

QuoteOriginally posted by: DevonFangsSilly thing, but should we stick to a style guide like Google's one?I find that sometimes annoying and maybe we could consider some modifications, but it'd be good to have some homogeneity.I remember some remarks on this, i.e. it was a wee bit simple-minded and limited. I think it is very difficult to tell people what intra-module style to use. Inter-module interfaces are more important.What about those styles in C, C# ?? I don't think this project should be devoted to C++ style. We are responsible adults. On the other hand your code should be joy to read.
Last edited by Cuchulainn on October 3rd, 2011, 10:00 pm, edited 1 time in total.
 
User avatar
DevonFangs
Posts: 0
Joined: November 9th, 2009, 1:49 pm

donations

October 4th, 2011, 9:28 am

QuoteOriginally posted by: outrunQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: DevonFangsSilly thing, but should we stick to a style guide like Google's one?I find that sometimes annoying and maybe we could consider some modifications, but it'd be good to have some homogeneity.I remember some remarks on this, i.e. it was a wee bit simple-minded and limited. I think it is very difficult to tell people what intra-module style to use. Inter-module interfaces are more important.What about those styles in C, C# ?? I don't think this project should be devoted to C++ style. We are responsible adults. On the other hand your code should be joy to read.We could say "read the google style guide" and feel free to deviateFor the interfaces: boost has naming convenction for directories, header file names, function names, classes, templates. I think we should adopt those.* functions all lower case, no camel case, words separated by underscores.* template parameters start with a Capital(something like this)Yes, that's what I had in mind. Not too strict rules, but some kind of coherence among the parts -- so one can recognize enum's or something.
 
User avatar
Polter
Posts: 1
Joined: April 29th, 2008, 4:55 pm

donations

October 4th, 2011, 9:51 am

Agree, no reason to follow the Google style guide (it's over-specified for our purpose, IMHO).No more (perhaps less) than this should suffice: http://www.boost.org/development/requir ... ing"Follow quality programming practices. See, for example, "Effective C++" 2nd Edition, and "More Effective C++", both by Scott Meyers, published by Addison Wesley."// a reasonable summary of "We are responsible adults. On the other hand your code should be joy to read."?
Last edited by Polter on October 3rd, 2011, 10:00 pm, edited 1 time in total.