Re:CamelCase vs. underscores: Scientific showdown
by louthy on Tuesday March 03, 2015 @01:03PM
(#9139320)
> ItMightBeThatOne
Are we discussing Pascal casing now? ;)
> There is an objective, scientific truth to which one is easier to read
I seriously doubt that. I would have thought that training over many years creates a bias one way or the other. I find It_might_be_this_one much harder to read than itMightBeThatOne. I much prefer kebab-casing-over-underscores also.
Perhaps there's a definitive answer for new programmers who have never seen either casing style? But for you to claim that those who disagree with you are drinking Kool-Aid is disingenuous.
Re:CamelCase vs. underscores: Scientific showdown
by teamhappy on Tuesday March 03, 2015 @01:39PM
(#9139632)
It is training over many years. The text you read most of the time isn't code though, which is exactly why I suspect the underscores to be more intuitive for your eyes. Please don't misunderstand the Kool-Aid part. I prefer "thisone" over all the others. It's probably the worst choice, but it works for me. I don't expect you to drink my Kool-Aid.
I'm glad you used the word "preference." I wish people wouldn't feel the need to justify arbitrary choices they make in life. It's your code and I will honour the choices you made if I ever end up working on it. You can't expect me to drink the Kool-Aid though.