CamelCase naming convention
-
Computafreak wrote:
IHaveNeverReallyHadThisProblemBecauseIFindItEasyToBothReadAndWrit
You find that easy to read? :~ As for ease of writing, how many time did you have to press Shift?
-
Slow day? Feel the need for a completely arbitrary flamewar? I'll bite :)
Nemanja Trifunovic wrote:
With undrescores it is at least easy to read if not to write: get_my_precious_data_from_an_XML_file()
That makes my stomach churn. For no other reason that typing the underscore is a PITA. I find camel casing more aesthetically pleasing, at least to my eyes.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh
Jim Crafton wrote:
Slow day?
On the contrary - a busy day and I need to vent :)
Jim Crafton wrote:
That makes my stomach churn. For no other reason that typing the underscore is a PITA. I find camel casing more aesthetically pleasing, at least to my eyes
Do I see a contradiction here? It makes your stomach churn for no other reason than typing, and then you say you find camel casing more aesthetically pleasing? Anyway, I can't argue with the "aesthetically pleasing" part, but it is equally hard to type.
-
Why most programmers (at least Windows and Java programmers) use this horrible notation? It is both hard to write and hard to read:
GetMyPreciousDataFromAnXMLFile()
With undrescores it is at least easy to read if not to write:
get_my_precious_data_from_an_XML_file()
And of course, there is always a way to make it easy to write but hard to read:
getmypreciousdatafromanXMLfile()
Lispers have the best of both worlds (well, except for the parentheses):
(get-my-precious-data-from-an-XML-file)
I feel better now - feel free to vote me down :)
Things like these are a matter of personal preference. Talking about code formatting, I call people who do this a rogue:
void MyMagicFunc(LPVOID pParams){
if(!pParams){
HandleError();
}//stuff goes here
}I much prefer this instead:
void MyMagicFunc(LPVOID pParams)
{
if(!pParams)
{
HandleError();
}//stuff goes here
}But, I'm well prepared to be called a rogue by those who don't like my style, as everyone may not like the same way of doing things. :) [ADDED] Just noticed the camel casing in my post. [/ADDED]
It is a crappy thing, but it's life -^ Carlo Pallini
-
Jim Crafton wrote:
Slow day?
On the contrary - a busy day and I need to vent :)
Jim Crafton wrote:
That makes my stomach churn. For no other reason that typing the underscore is a PITA. I find camel casing more aesthetically pleasing, at least to my eyes
Do I see a contradiction here? It makes your stomach churn for no other reason than typing, and then you say you find camel casing more aesthetically pleasing? Anyway, I can't argue with the "aesthetically pleasing" part, but it is equally hard to type.
Nemanja Trifunovic wrote:
Do I see a contradiction here?
But of course! This is all completely subjective, except for the fact that I'm right and you're wrong, VIM sucks, and using the underscore as you're proposing will undoubtedly lead to the end of the Union, and a take over of the State by leftist-grave-robbing-breast-feeding-thumb-sucking-whiner-socialists.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh
-
Steve_Harris wrote:
As you have to press Shift to get an underscore, I'd say about the same.
Exactly - which is why I said that underscores are easy to read but hard to write.
underscores overstretch my right little finger though and i wouldn't want to get RSI from continually typing underscores or hyphens
-
Nemanja Trifunovic wrote:
Do I see a contradiction here?
But of course! This is all completely subjective, except for the fact that I'm right and you're wrong, VIM sucks, and using the underscore as you're proposing will undoubtedly lead to the end of the Union, and a take over of the State by leftist-grave-robbing-breast-feeding-thumb-sucking-whiner-socialists.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh
Jim Crafton wrote:
using the underscore as you're proposing
See - you got it all wrong - I am not proposing using the underscore, but switching to Lisp.
Jim Crafton wrote:
VIM sucks
OK sir, this is getting personal now. You can have an opinion on camel casing, but don't bad mouth The Editor.
-
Why most programmers (at least Windows and Java programmers) use this horrible notation? It is both hard to write and hard to read:
GetMyPreciousDataFromAnXMLFile()
With undrescores it is at least easy to read if not to write:
get_my_precious_data_from_an_XML_file()
And of course, there is always a way to make it easy to write but hard to read:
getmypreciousdatafromanXMLfile()
Lispers have the best of both worlds (well, except for the parentheses):
(get-my-precious-data-from-an-XML-file)
I feel better now - feel free to vote me down :)
Nemanja Trifunovic wrote:
GetMyPreciousDataFromAnXMLFile()
I find this to be quite readable.
Nemanja Trifunovic wrote:
get_my_precious_data_from_an_XML_file()
On the other hand, this I find to be ugly and slightly harder to read. My brain is auto-wired to recognize a new word when it sees an upper case letter, but with an underscore not so much.
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
Why most programmers (at least Windows and Java programmers) use this horrible notation? It is both hard to write and hard to read:
GetMyPreciousDataFromAnXMLFile()
With undrescores it is at least easy to read if not to write:
get_my_precious_data_from_an_XML_file()
And of course, there is always a way to make it easy to write but hard to read:
getmypreciousdatafromanXMLfile()
Lispers have the best of both worlds (well, except for the parentheses):
(get-my-precious-data-from-an-XML-file)
I feel better now - feel free to vote me down :)
What is all this camel case, pascal case, underscores. I don't need any of them if keep my variables to 6 characters (1 character is preferred). ;P p.s. see my signature
SS => Qualified in Submarines "We sleep soundly in our beds because rough men stand ready in the night to visit violence on those who would do us harm". Winston Churchill "Real programmers can write Fortran in any language". Unknown
-
What is all this camel case, pascal case, underscores. I don't need any of them if keep my variables to 6 characters (1 character is preferred). ;P p.s. see my signature
SS => Qualified in Submarines "We sleep soundly in our beds because rough men stand ready in the night to visit violence on those who would do us harm". Winston Churchill "Real programmers can write Fortran in any language". Unknown
Jim (SS) wrote:
"We sleep soundly in our beds because rough men stand ready in the night to visit violence on those who would do us harm". Winston Churchill
If I could choose only one person in history to have a few drinks with...
Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com
-
underscores overstretch my right little finger though and i wouldn't want to get RSI from continually typing underscores or hyphens
-
What is all this camel case, pascal case, underscores. I don't need any of them if keep my variables to 6 characters (1 character is preferred). ;P p.s. see my signature
SS => Qualified in Submarines "We sleep soundly in our beds because rough men stand ready in the night to visit violence on those who would do us harm". Winston Churchill "Real programmers can write Fortran in any language". Unknown
Jim (SS) wrote:
"Real programmers can write Fortran in any language". Unknown
Real programmers spell it
FORTRAN
like God, IBM, and other TLA's intended.Software Zen:
delete this;
-
Nemanja Trifunovic wrote:
Do I see a contradiction here?
But of course! This is all completely subjective, except for the fact that I'm right and you're wrong, VIM sucks, and using the underscore as you're proposing will undoubtedly lead to the end of the Union, and a take over of the State by leftist-grave-robbing-breast-feeding-thumb-sucking-whiner-socialists.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh
Jim Crafton wrote:
using the underscore as you're proposing will undoubtedly lead to the end of the Union, and a take over of the State by leftist-grave-robbing-breast-feeding-thumb-sucking-whiner-socialists
You may be Right.
Jim Crafton wrote:
VIM sucks
Then again, you're probably just lost. Try fid=2605.
-
Jim (SS) wrote:
"Real programmers can write Fortran in any language". Unknown
Real programmers spell it
FORTRAN
like God, IBM, and other TLA's intended.Software Zen:
delete this;
Gary Wheeler wrote:
spell it FORTRAN
I was wondering how many other people even knew that. Even C# and Java still allow GOTOs, so the statement is still true.:cool:
SS => Qualified in Submarines "We sleep soundly in our beds because rough men stand ready in the night to visit violence on those who would do us harm". Winston Churchill "Real programmers can write FORTRAN in any language". Unknown
-
Why most programmers (at least Windows and Java programmers) use this horrible notation? It is both hard to write and hard to read:
GetMyPreciousDataFromAnXMLFile()
With undrescores it is at least easy to read if not to write:
get_my_precious_data_from_an_XML_file()
And of course, there is always a way to make it easy to write but hard to read:
getmypreciousdatafromanXMLfile()
Lispers have the best of both worlds (well, except for the parentheses):
(get-my-precious-data-from-an-XML-file)
I feel better now - feel free to vote me down :)
-
Nemanja Trifunovic wrote:
GetMyPreciousDataFromAnXMLFile()
I find this to be quite readable.
Nemanja Trifunovic wrote:
get_my_precious_data_from_an_XML_file()
On the other hand, this I find to be ugly and slightly harder to read. My brain is auto-wired to recognize a new word when it sees an upper case letter, but with an underscore not so much.
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com linkSo you are already here :laugh: . lol I was quickly looking for the "familiar" names that have replied to this thread. funny. You are there :)
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
-
Why most programmers (at least Windows and Java programmers) use this horrible notation? It is both hard to write and hard to read:
GetMyPreciousDataFromAnXMLFile()
With undrescores it is at least easy to read if not to write:
get_my_precious_data_from_an_XML_file()
And of course, there is always a way to make it easy to write but hard to read:
getmypreciousdatafromanXMLfile()
Lispers have the best of both worlds (well, except for the parentheses):
(get-my-precious-data-from-an-XML-file)
I feel better now - feel free to vote me down :)
Nemanja Trifunovic wrote:
getmypreciousdatafromanXMLfile()
You are really cunning. :laugh: That's not a camel, that's a snake with a big ass. A real camel would look something like this:
getMyPreciousDataFromAnXMLFile
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
-
Why most programmers (at least Windows and Java programmers) use this horrible notation? It is both hard to write and hard to read:
GetMyPreciousDataFromAnXMLFile()
With undrescores it is at least easy to read if not to write:
get_my_precious_data_from_an_XML_file()
And of course, there is always a way to make it easy to write but hard to read:
getmypreciousdatafromanXMLfile()
Lispers have the best of both worlds (well, except for the parentheses):
(get-my-precious-data-from-an-XML-file)
I feel better now - feel free to vote me down :)
why_the_hell_is_XML_always_capitalized?
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
-
Jim (SS) wrote:
"Real programmers can write Fortran in any language". Unknown
Real programmers spell it
FORTRAN
like God, IBM, and other TLA's intended.Software Zen:
delete this;
Huh? I thought it was ForTran. :confused:
-
why_the_hell_is_XML_always_capitalized?
Best wishes, Hans
[CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]
Capitalized? No. Leveraged? Yes. :-D
-
I can almost see you sitting in front of your computer, Rama, hunched over ... coveting your code ... whispering ... It is ... My Precious ... :rolleyes:
That was a typo. here is the actual code.
[myPrecious loadDataFromXML];