英文:
Property file naming convention
问题
我们需要为多级层次公司添加属性。
我们无法找到适当的属性名称。
请提供属性名称:
company.level1
company.level.one
company.heirarchy.one
company.heirarchy1
或者欢迎提出其他建议。
更新:我们使用了:company.heirarchy.one。
英文:
We have to add properties of multi-level hierarchy companies.
We are unable to find a suitable name for those properties.
Please suggest the property name:
company.level1
company.level.one
company.heirarchy.one
company.heirarchy1
or any other suggestions are welcome
Update: We used: company.heirarchy.one
答案1
得分: 0
通常的标准是在层级间使用点号,对于多个单词的属性使用连字符,例如:
company.level-one
使用数字还是数字的名称可能是个人偏好的问题。我发现使用名称更清晰。
英文:
Usual standard is dots for hierarchy levels, hyphens for multiple worded properties eg
company.level-one
Digits or names of numbers is probably a matter of preference. I find names clearer.
专注分享java语言的经验与见解,让所有开发者获益!
评论