Re: OT-ish: convert script from camelCase to snake_case

2022-09-15 Thread jkn
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 >

Re: OT-ish: convert script from camelCase to snake_case

2022-09-15 Thread Thomas Passin
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,

Re: OT-ish: convert script from camelCase to snake_case

2022-09-15 Thread jkn
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

Re: OT-ish: convert script from camelCase to snake_case

2022-09-15 Thread Thomas Passin
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

Re: OT-ish: convert script from camelCase to snake_case

2022-09-15 Thread jkn
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

Re: OT-ish: convert script from camelCase to snake_case

2022-09-15 Thread jkn
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