Empirical proof that underscores are good
-
"And in other breaking news studies, the University of Obvious found that people who's native language is English can pick out English phrases in German sentences better than German phrases".
-
This gets my vote for readability! :) The only downside is keyboard efficiency, but most of us only type a variable name once...the rest is auto-complete or copy/paste, so hardly a factor.
"Go forth into the source" - Neal Morse
Will you sod off with your dammed logic that just killed my main argument (keyboard and intellisense) against underscores, I hate the bloody things and growl at any of the devs that employ them.
Never underestimate the power of human stupidity RAH
-
Will you sod off with your dammed logic that just killed my main argument (keyboard and intellisense) against underscores, I hate the bloody things and growl at any of the devs that employ them.
Never underestimate the power of human stupidity RAH
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
Stop wanking and start doing real work! :zzz: Next you'll bother us about {} instead of { } I wonder if there ever was something more pointless? Maybe it's what you argue about when your work doesn't matter, I suppose?!
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
:thumbsup: It's nice they put that right there in the intro. No need to read through the study then. :-\ Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
And even better that Ron had put it here, so I would no longer need to open the link.
Signature construction in progress. Sorry for the inconvenience.
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
And somebody actually got paid for writing that?
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
-
Stop wanking and start doing real work! :zzz: Next you'll bother us about {} instead of { } I wonder if there ever was something more pointless? Maybe it's what you argue about when your work doesn't matter, I suppose?!
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
Surely that's { } ?
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
I wonder just how much this is influenced by the fact that the english language is all lowercase by default, with very few exceptions. In german, Nouns are always uppercase, that means for a german speaker, a symbol based on german words would be more natural to read if each noun would start with an uppercase letter (e. g.
FeldIndex
), whereas an english speaker basing his symbol on english nouns would consider it more natural to read it all lowercase (e. g.array_index
). -
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
-
Surely that's { } ?
Simon O'Riordan from UK wrote:
Surely that's
Stop calling me Shirley
-
Simon O'Riordan from UK wrote:
Surely that's
Stop calling me Shirley
Looks like I picked the wrong day to give up sniffing glue.....
-
Stop wanking and start doing real work! :zzz: Next you'll bother us about {} instead of { } I wonder if there ever was something more pointless? Maybe it's what you argue about when your work doesn't matter, I suppose?!
My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
Empirical study to prove that the person doing the study had no clue. Early in we find that they included programmers and non programmers in the study. Which raises the question, "Why would someone include an audience the code wasn't meant for?" I will give the person the benefit of the doubt that he didn't know any better. At the end of the day, it is for people. And there is benefit to having the code consistent. And there is benefit to having that consistent state follow that which is least annoying to the audience. (And here is a clue: said audience writes code.
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
Me? I used underScores. And I use pascal_case. And I use CamelCase. I also use Hungarian notation sometimes. I've found over the years and thousands of lines of code in many languages that there's NO ONE GOOD solution ... to just about any question. I do not, however, use tabs :)
-
Just in case (sic) you had wondered, the_underscore_style_of_naming_variables_etc is known as Snake Case.
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
-
i_have_always_preferred_this_style ToCamelOrPascalOne and now there is a study that confirms my point of view[^] :cool:
This study just consider normal people brain, they used "seven undergraduates" from second year, people that aren't programming for long time, if they even program instead of just frequent classes. I am coding for the last ten years, my neural network has adapted to read CamelOrPascal just as fast as this_mode. But nothing is faster than just space, there is only one way to read faster, is to read less.
-
loctrice wrote:
Isn't that title case ?
It's camel uppercase (or pascal / title case).
Regards, Nish
Blog: voidnish.wordpress.com Latest article: C++ 11 features in Visual C++ 2013 Preview
-
Loctrice is right: ThisIsTitleCase. thisIsCamelCase.
If you think 'goto' is evil, try writing an Assembly program without JMP.
TNCaver wrote:
ThisIsTitleCase. thisIsCamelCase.
Camel case has many variants. Pascal case is upper camel case. Title case is CamelCaps. See http://en.wikipedia.org/wiki/CamelCase[^]
Regards, Nish
Blog: voidnish.wordpress.com Latest article: C++ 11 features in Visual C++ 2013 Preview
-
TNCaver wrote:
ThisIsTitleCase. thisIsCamelCase.
Camel case has many variants. Pascal case is upper camel case. Title case is CamelCaps. See http://en.wikipedia.org/wiki/CamelCase[^]
Regards, Nish
Blog: voidnish.wordpress.com Latest article: C++ 11 features in Visual C++ 2013 Preview
So we're all correct. However, from that wiki, "Camel case may start with a capital or, especially in programming languages, with a lowercase letter." See also the article's named anchor #Current_usage_in_computing.
If you think 'goto' is evil, try writing an Assembly program without JMP.