属性文件命名约定

huangapple 未分类评论51阅读模式
英文:

Property file naming convention

问题

我们需要为多级层次公司添加属性。
我们无法找到适当的属性名称。
请提供属性名称:

  1. company.level1
  2. company.level.one
  3. company.heirarchy.one
  4. 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:

  1. company.level1
  2. company.level.one
  3. company.heirarchy.one
  4. 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.

huangapple
  • 本文由 发表于 2020年4月10日 22:34:09
  • 转载请务必保留本文链接:https://java.coder-hub.com/61142499.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定