Matheus Oliveira
07/21/2023, 7:28 PM[Question]
-> In kotlin the correct thing is to use ID or Id ?
There are many conventions about this all over the internet, however I haven't found a rule or pattern that is directly applied in kotlin.
There are projects that follow both formats. And we know this can be something very personal.
However, according to the whole structure where Kotlin was constituted.
What would be the correct standard for these nomenclatures? Is there in fact any real guidelines?ephemient
07/21/2023, 7:31 PMLandry Norris
07/21/2023, 7:31 PMephemient
07/21/2023, 7:32 PMWhen using an acronym as part of a declaration name, capitalize it if it consists of two letters (); capitalize only the first letter if it is longer (IOStream
,XmlFormatter
).HttpInputStream
Landry Norris
07/21/2023, 7:33 PMstantronic
07/22/2023, 11:58 AMRxWorker
, `ICUCompat, Dp
etc.`