Welcome Guest, Not a member yet? Register   Sign In
Do you use camelCase?
#11

[eluser]mironcho[/eluser]
Wow, what kind of consensus, what kind of activity Wink
#12

[eluser]champs[/eluser]
As for typing, it would seem that in a two word function, there's scarcely a difference between hitting the Shift key twice and typing a single underscore. Of course, that's pretty irrelevant because your editor should be finishing off that typing for you, anyway.

And at first, CamelCase looks nice and pretty, but then ask its proponents how they'd scheme a moderately complicated function name.

* Does it start with a capital letter?
* Do you capitalize monograms like HTML?
* If a "word" ends with a capital (or is a number), does the next word still start with uppercase?
* ... and if so, is it *really* CamelCase anymore?

The number of different answers scales dramatically as the complexity of function names increases. If the function is named 'Do I use HTML 4 or XHTML Transitional' in "human" terms... you'll get a dozen different answers, and if you say that function names should never need to be that complicated... then you've never really looked at XML DOM.
#13

[eluser]Derek Jones[/eluser]
In case no one has ever come across it, our guidelines for ExpressionEngine add-on development for 3rd parties have pretty specific naming conventions. The reasons Champs lists have a lot to do with why we decided on those, because it's easier to apply the rules consistently.
#14

[eluser]Lone[/eluser]
Haha you guys crack me up Tongue You must be using some kind of Diebold voting system like in the USA elections Tongue

It is interesting to see the 'true' split at the moment though being fairly even between the three options showing a definite favour towards the camel style.




Theme © iAndrew 2016 - Forum software by © MyBB