你发现什么名字自己prepending /追加到班定期? [英] What names do you find yourself prepending/appending to classes regularly?
问题描述
哪个名词你发现自己经常把你的课的结束?
Which nouns do you find yourself putting regularly at the end of your classes?
例如,我有坚持的一个习惯信息
到周围传递信息,但不要做大量的类:
For example, I have a habit of sticking Info
onto classes that pass information around but don't do a great deal:
-
ImportInfo
-
SITEINFO
ImportInfo
SiteInfo
或为协调类:
-
的UserManager
-
安全管理器
UserManager
SecurityManager
我最终使用生成器
经常字符串相关的类,即使勉强做任何建筑物:
I end up using Builder
quite often for string related classes, even if it barely does any building:
-
TemplateBuilder
-
HtmlBuilder
TemplateBuilder
HtmlBuilder
当然永恒的辅助/工具类:
And of course the timeless Helper/Utility class:
-
PhraseHelper
-
NumberUtility
-
FileHelper
PhraseHelper
NumberUtility
FileHelper
你有什么好的,我指的是简洁的描述,名词或单词,你经常用它来表示类的主要作用是什么?
Have you got any good, by which I mean concise and descriptive, nouns or words you regularly use to denote the class' main role?
这个问题的目的是在.NET世界,但可以扩展到Java,C ++,Python和等。的
推荐答案
您可以看看源 - code-wordle.de ,我分析有.NET framework的类名和其他一些库的最常用的后缀。
You can take a look at source-code-wordle.de, I have analyzed there the most frequently used suffixes of class names of the .NET framework and some other libraries.
前20名分别是:
- 属性
- 键入
- 帮助
- 集合
- 转换
- 处理器
- 信息
- 提供
- 除了
- 服务
- 元素
- 管理
- 节点
- 选项
- 工厂
- 上下文
- 项目
- 设计师
- 基础
- 编辑
- attribute
- type
- helper
- collection
- converter
- handler
- info
- provider
- exception
- service
- element
- manager
- node
- option
- factory
- context
- item
- designer
- base
- editor
这篇关于你发现什么名字自己prepending /追加到班定期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!