控件命名:OrderGrid 还是 OrdersGrid?
关于命名标准的问题,遵循 .NET 标准。
您如何命名显示订单对象网格的控件?它不是编辑器,但允许选择一个/多个订单。
- 订单网格
还是
- 订单网格?
基本上:所显示的对象是单数,还是复数?
我们在这里发生了一些争吵。
注意:该名称暴露给用户。 UI 允许从控件组合 UI,因此名称显示在 UI 控件的选择器中。
Question abou naming standards, following .NET standards.
How would you name a control that shows a grid of order objects? It is not an editor, but allows selection of one / more orders.
- OrderGrid
or
- OrdersGrid ?
Basically: Singular for the object shown, or plural?
We are in some quarrels here.
Note: the name is exposed to the user. The UI allows composition of the UI from controls, so the name shows up in a selectot for UI controls.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果网格同时显示或代表多个订单,我会考虑复数。 (不过,这并不是一个硬性规则——“订单网格”、“订单查看器”之类的词对我来说听起来很奇怪。)
不过,我会默认选择单数,除非有理由明确表明存在里面有多个订单。
If the grid shows or represents multiple orders at once, i'd consider pluralizing. (That's not a hard rule, though -- "orders grid", "orders viewer" and the like sound odd to me.)
I'd opt for the singular by default, though, unless there's a reason to make it clear that there's multiple orders in there.
我会复数:
dgvOrders
既然它暴露给用户,为什么不简单地使用Orders?
I'd pluralize:
dgvOrders
Since it's exposed to users why not simply use Orders?