3 ms·
This seems like a style preference, not something where there is a clear "best" option. I personally suggest snake_case for five reasons: 1) It's very readabl
by smt88 5y ago
This seems like a style preference, not something where there is a clear "best" option.
I personally suggest snake_case for five reasons:
1) It's very readable (an underscore visually mimics a space between words)
2) The question of case sensitivity is avoided because it's all lower case
3) No one has to remember whether the capitalization is PaschalCase or camelCase or whatever the other cases are -- it's just lowercase all the way through
4) The YAML key becomes a valid variable in every modern programming language (which is not true if you use a hyphen)
5) Double-click in any system will select the_whole_key instead of separate-words (test those in your browser to see what I mean)
- tomcam 5y agoHm... I don't like snake_case but #4 and #5 are frankly genius. Thank you.