it probably depends on your keyboard nationality as well...
On Thursday, September 15, 2022 at 2:34:32 PM UTC+1 tbp1...@gmail.com wrote:
> For me, I barely notice typing the underscore, but my hands really dislike
> typing a "#" for a comment. So when I need a line-oriented data format of
>
For me, I barely notice typing the underscore, but my hands really dislike
typing a "#" for a comment. So when I need a line-oriented data format of
my own, I usually allow a ";" as well as a "#" to comment out a line.
On Thursday, September 15, 2022 at 9:29:13 AM UTC-4 jkn wrote:
> Yeah,
Yeah, I've seen those kind of studies - and ones with different findings,
as you may well have.
I don't think that (for *me*) there is much difference in the 'cognitive
effort' between the two styles. But there is more effort in typing
snake_case (both the extra character, and the necessary
FWIW (maybe not much), Wikipedia's page on CamelCase includes this -
'A 2010 follow-up study, with other subjects containing mainly pre-trained
programmers and using an improved measurement method with use of
eye-tracking equipment, indicates: "While results indicate no difference in
accuracy
Yeah ... I wrote a small script which runs pylint and captures the output,
then looks at the errors and applies a few simple heuristics to get a list
of the changes I want, then does a replace() on that list.
It's a bit crude but gives me most of what I want. I am reminded why I
prefer
Hi Thomas
that was pretty much the approach I was thinking of adopting myself,
thanks. I was just a bit surprised that something like that didn't already
exist.
Anyway, in the absence of anything else I'll see what that gives me.
Cheers, J^n
On Wednesday, September 14, 2022 at 11:16:25
pylint by default will issue message C0103 for functions and methods that
should be snake_case but aren't (Leo's configuration doesn't seem to pick
that up). Since the pylint message will include line and position of the
name, it shouldn't be hard to write a program to convert these instances.
Hi all
slightly OT but I think this is a good place to ask:
I tend to write my personal python using camelCase for variables and method
names;
I prefer this to the PEP8 standard for various reasons.
I now have a need to convert some such scripts to snake_case, to meet
a linting requirement.