Replies: 2 comments 2 replies
-
Aesthetically I like kebab case the best. Wondering though how important is it to maintain backwards compatibility here? |
Beta Was this translation helpful? Give feedback.
2 replies
-
The format we choose is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rationale for Discussion
original ticket #83
The discussion around the configuration format for
agglayer
has arisen due to the need for greater consistency and readability in configuration file. Currently, there is a mix ofPascalCase
andlowercase
formats, leading to confusion and maintenance challenges in the future. As we'll for sure add more configuration option to allow a wide range of system configuration but also behaviors configuration, we need to think about the best format/shape to offer.Format Options
For
agglayer
configuration files, four main formats are being considered:PascalCase
: Often used for class names in object-oriented programming. Examples:LayerConfig
,MaxConnections
.lowercase
: A simple format, all in lowercase without spaces or hyphens. Examples:layerconfig
,maxconnections
.snake_case
: Uses underscores to separate words, commonly seen in Python. Examples:layer_config
,max_connections
.kebab-case
: Uses hyphens to separate words, making it easy to read and type. Examples:layer-config
,max-connections
.Analysis of Options
PascalCase
lowercase
snake_case:
kebab-case:
Personal point of view
For me, the
kebab-case
format emerges as the best solution foragglayer
configuration files. As its adoption ensures better readability and increased consistency while facilitating the maintenance.Beta Was this translation helpful? Give feedback.
All reactions