News for hackers. Stuff that matters.
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.