I'm a bit confused on the coding conventions. I'm ...
# compose-desktop
b
I'm a bit confused on the coding conventions. I'm running through codelabs for compose and coding for compose desktop. All of the function names are PascalCase. Should I follow the convention as shown or ignore this and stick to camelCase?
c
I think it's convention that a composable function is in PascalCase.
4
b
Ah, that makes sense now. Thank you!
j
To be clear, it's all composable functions with a Unit return type. Such composables should be nouns (not verbs) and use PascalCase.
🙌 3
z
There should be Android Studio lint checks that tell you to name your Unit-returning composables in pascal case, and your non-unit-returning composables in camel case
2
r
Not only for AndroidStudio, but for IntelliJ as well (writing desktop app and getting confused by underlines)
1