[Python-Dev] pep8 reasoning

Tim Peters tim.peters at gmail.com
Thu Apr 24 21:05:41 CEST 2014


[Tim]
>> There's been a bit of serious study on this.  The results are still
>> open to interpretation, though ;-)  Here's a nice summary:
>>
>>
>> http://whathecode.wordpress.com/2011/02/10/camelcase-vs-underscores-scientific-showdown/

[Terry Reedy]
> The linked poll is almost evenly split, 52% to 48% for camel case with over
> 2000 votes each.

There are two polls in the post.  You're referring to the first, which
the author asked viewers to fill out before reading any of the
"evidence".

There's another poll at the end, which the author asked viewers to
fill out after reading the whole post.  In that poll, preference
changed (56% to 44% in favor of underscore).

A followup post summarized later research, confirming the earlier
result that CamelCase'd names are harder to read (as measured by eye
tracking studies):

    http://whathecode.wordpress.com/2013/02/16/camelcase-vs-underscores-revisited/

but-all-obvious-a-priori-to-the-most-casual-observer<wink>-ly y'rs  - tim


More information about the Python-Dev mailing list