self-documenting enum values :joy: ``` enum class...
# random
m
self-documenting enum values πŸ˜‚
Copy code
enum class Case {

		lowercase,
		lowerCamelCase,
		lower_snake_case,
		UPPERCASE,
		UpperCamelCase,
		UPPER_SNAKE_CASE
	}
πŸ˜‚ 7
😍 1
πŸ‘ 3
d
Isn't
UpperCamelCase
supposed to be
PascalCase
?
πŸ‘Œ 4
πŸ‘† 2
m
I prefer symmetry. And never used Pascal. And other languages use the same πŸ˜„
but yes, also quite common πŸ™‚
d
Never? Even for your class/enum names? πŸ˜›
m
PascalCase yes, but not Pascal πŸ˜›
d
Oh lol oops. πŸ˜…
d
I actually love this!
m
so what is the right default for a JSON library? πŸ˜„
a
I guess the point is you know which case even if you don't know the name
m
Yeah that's why I've added them that way πŸ™‚ I've decided on
lowerCamelCase
for library default.
g
You also need
lower-kebab-case
m
So true! Thanks πŸ˜„
Using spaces was a bad idea - Android DEX doesn't support them 😒
d
String Manipulation plugin does this too, it's really nice.