News for hackers. Stuff that matters.
Re:Swift for TensorFlow Shuts Down by skohan on Friday February 12, 2021 @05:36PM (#26119350)
I disagree that it's "a lot" more readable. I have read a lot of camelCase code in my lifetime, and I can count on zero hands the number of times I ever had an issue parsing code due to the use of camelCase.

Keyboard remapping seems like an extreme solution, and I don't want to train my fingers in such a way that when I sit down at a different workstation that doesn't have my .vimrc I can't type rust anymore.

You don't need snake_case for contrast. You can use lowerCamel and UpperCamel to denote the same levels of significance. SCREAMING_SNAKE is fine for constants because they don't get used all that often, but rust maps the hardest-to-type case to the most-frequently-used, which in my opinion is an ergonomic failure.

Re:Swift for TensorFlow Shuts Down by ambicapter on Friday February 12, 2021 @11:03PM (#26121295)
CamelCase is terrible as soon as you have an abbreviation in your function (like "DB"). I run into this extremely frequently at my place of work.
Re:Swift for TensorFlow Shuts Down by dragonwriter on Saturday February 13, 2021 @06:44AM (#26123034)
> CamelCase is terrible as soon as you have an abbreviation in your function (like "DB").

Yeah someone always wants to capitalize abbreviations/acronyms weirdly, or treat camel case like it was title case in handling short words or...

Getting people to be consistent with snake case is much easier, for some reason.

Re:Swift for TensorFlow Shuts Down by int_19h on Saturday February 13, 2021 @09:51PM (#26129227)
It really depends on your naming conventions. If you consistently treat acronyms in the same way as regular words (i.e. "XmlReader", "IoStream" etc), then there's no practical difference with "xml_reader" and "io_stream".
Re:Swift for TensorFlow Shuts Down by skohan on Saturday February 13, 2021 @04:53AM (#26122585)
Can you give an example of where you find this "terrible?" I have never had an issue with it, and even if you don't like it aesthetically, I think the fact that you don't like looking at certain names (a subjective complaint) is objectively easier to overcome than being required to type one of the least ergonomic characters on the keyboard over and over, which is a matter of physical reality.