CodingStandardsDiscussions

Regarding TWiki Coding Conventions

Are we really fixated on the camel case style for function and variable names (within code)? Most Perl projects and development houses I'm familiar with use underscores_to_separate_words_in_variables, It is common Perl style.

-- SeanMcCarthy

Not fixated, no. But what value comes from changing? I see absolutely no value in mixing the styles (quite the reverse).

-- CrawfordCurrie - 17 Nov 2008 - 08:15

Good point, mixing would be completely awful. I was thinking of any new modules/plugins/contribs, anything that is a clean start could be done the proper way wink

-- SeanMcCarthy - 17 Nov 2008 - 12:19

surely, new modules should also be consistent with existing modules.

-- SvenDowideit - 21 Nov 2008 - 12:17

It's probably not worth too much argument, I guess my point is CamelCase? is a style more synonymous with C++/Java/C#. Perl programmers jumping on board are more likely to be familiar with the usual Perl style. IMHO the Perl style is more readable, and it would be nice to look like a Perl project. /pendantry smile

-- SeanMcCarthy - 24 Nov 2008 - 01:42
Topic revision: r6 - 24 Nov 2008 - 01:51:38 - SeanMcCarthy
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads