[Developers] Naming convention

Johnoel Ancheta johnoel at hawaii.edu
Wed Jul 9 12:02:46 PDT 2014


This is one example.

void model_parameters::initializationfunction(void)


On Wed, Jul 9, 2014 at 8:37 AM, Johnoel Ancheta <johnoel at hawaii.edu> wrote:

> Both are fine.  Dave mostly used the underscores (is_not_camel_back())
> convention,
> but there are places where isnotcamelbacktoo() is used.  isCamelBack()
> notation should
> not be used.
>
> + Adhere to the style of the original.
>
>
>
> On Wed, Jul 9, 2014 at 8:27 AM, Mark Maunder <mmaunder at iattc.org> wrote:
>
>>  So do we use
>>
>>
>>
>> is_not_camel_back()
>>
>>
>>
>> or
>>
>>
>>
>> isnotcamelback()
>>
>>
>>
>>
>>
>> Or something else?
>>
>>
>>
>> *From:* Johnoel Ancheta [mailto:johnoel at hawaii.edu]
>> *Sent:* Wednesday, July 09, 2014 11:26 AM
>> *To:* Mark Maunder
>> *Cc:* Steve Martell; developers at admb-project.org
>>
>> *Subject:* Re: [Developers] Naming convention
>>
>>
>>
>> Do not use camel back notation since the original code does not.  Update
>> the coding standard.
>>
>>
>>
>> 7. Avoid mixing lower and uppercase characters in classes and functions.
>>
>>    Do not use isCamelBack() notation.
>>
>>
>>
>> On Wed, Jul 9, 2014 at 8:20 AM, Mark Maunder <mmaunder at iattc.org> wrote:
>>
>> Thanks Johnoel.  The only thing I see in there on naming conventions is
>>
>>
>>
>> Avoid mixing lower and uppercase characters in classes and methods
>> (isCamelBack() notation).
>>
>>
>>
>> Does this mean we should use
>>
>>
>>
>> is_camel_back()
>>
>>
>>
>> Mark
>>
>>
>>
>>
>>
>> *From:* Johnoel Ancheta [mailto:johnoel at hawaii.edu]
>> *Sent:* Wednesday, July 09, 2014 11:15 AM
>> *To:* Steve Martell
>> *Cc:* Mark Maunder; developers at admb-project.org
>> *Subject:* Re: [Developers] Naming convention
>>
>>
>>
>> See the short list.
>>
>>
>>
>>
>> http://www.admb-project.org/svn/trunk/docs/developer/ADMBCodingStandards.txt
>>
>>
>>
>> On Wed, Jul 9, 2014 at 6:33 AM, Steve Martell <SteveM at iphc.int> wrote:
>>
>> The elements of C++ style is the standard we aim for.
>>
>>
>>
>>
>> http://www.amazon.com/Elements-Style-Sigs-Reference-Library/dp/0521893089/ref=sr_1_1?s=books&ie=UTF8&qid=1404923529&sr=1-1&keywords=elements+of+c%2B%2B+style
>>
>>
>>
>> Steve
>>
>> On Jul 9, 2014, at 9:29 AM, Mark Maunder <mmaunder at iattc.org> wrote:
>>
>>
>>
>>    Has the ADMB project decided on a recommended naming style? Camel
>> case, underscores, ….
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Mark
>>
>>
>>
>>
>>
>> The selectivity special issue of the journal Fisheries Research is now
>> published
>>
>> http://www.sciencedirect.com/science/journal/01657836/158/supp/C
>>
>>
>>
>>
>>
>> The Stock Synthesis special issue of the journal Fisheries Research
>>
>> http://www.sciencedirect.com/science/journal/01657836/142
>>
>>
>>
>> Mark Maunder
>>
>> Head of the Stock Assessment
>> Program
>>
>> Inter-American  Tropical Tuna
>> Commission
>>
>> 8901 La Jolla Shores Dr.
>>
>> La Jolla, CA  92037-1508, USA
>>
>>
>>
>> Tel: (858) 546-7027
>>
>> Fax: (858) 546-7133
>>
>> mmaunder at iattc.org
>>
>>
>> http://www.fisheriesstockassessment.com/TikiWiki/tiki-index.php?page=Mark+Maunder
>>
>>
>>
>> Visit the Center for the Advancement of Population Assessment Methodology
>> at
>>
>> http://www.capamresearch.org/
>>
>>
>>
>> Visit the AD Model Builder project at
>>
>>  http://admb-project.org/
>>
>>
>>
>> See the following website for information on fisheries stock assessment
>> http://www.fisheriesstockassessment.com/
>>
>>
>>
>>
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/developers
>>
>>
>>
>>
>>  ------------------------------
>>
>>
>> This internet e-mail message, and any files transmitted with it, contains
>> confidential, privileged information that is intended only for the
>> addressee. If you have received this e-mail message in error, please call
>> us at (206) 634-1838 collect if necessary) and ask to speak to the
>> message sender. Nothing in this e-mail or the act of transmitting it, is to
>> be construed as a waiver of any rights or privileges enjoyed by the sender
>> or the International Pacific Halibut Commission pursuant to the
>> International Organizations Immunities Act, 22 U.S.C. Sec. 288 et seq.
>>
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/developers
>>
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140709/4b5ac5fe/attachment.html>


More information about the Developers mailing list