[lugaru] Coding Standards

Ryan Hanson hansonry at gmail.com
Mon May 17 10:19:24 EDT 2010

On Sat, May 15, 2010 at 6:29 PM, David Faulk <davidfaulk at charter.net> wrote:
> Apologies if this post doesn't go where I want it to.  I'm so new to the
> open-source community that I don't know how to reply to threads.
> Regarding coding standards, I use the JSF coding standard at work
> (http://www2.research.att.com/~bs/JSF-AV-rules.pdf) and a lot of what's been
> mentioned is in there.  Don't get me wrong, I think this would be the wrong
> coding standard for this project - not being about to dynamically allocate
> memory and all ;)
> What about variable / operation naming convention?  Personally I find the
> words stuck together with no under-score or cap change really hard to read,
> for example thisisvariableone.  I'm down for anything (though I naturally
> use under-scores).
> _______________________________________________
> lugaru mailing list
> lugaru at icculus.org
> http://icculus.org/mailman/listinfo/lugaru

I agree that thisisvariableone is a bad standard.
I would take this_is_variable_one.
OR thisIsVariableOne.

I don't like multiple underscores. So I suggjest:
Two or less words Capitalize: runThing
Three or more, underscore: meaning_of_life

More information about the lugaru mailing list