English 中文(简体)
A. 基本控制员申报公约
原标题:Naming convention for base controller

在MVC-3我的申请中,一些控制人员做了类似的事情(CRUD和指数)。 因此,我设立了一个抽象的基础控制员,执行这些任务。 另一名控制员只是扩大基地控制员。

现在,一切都只是罚款。 但我对基地控制员的命名感到困惑。 所有控制人员类别的名称都必须与主计长一道完成,以使监控中心能够适当开展工作。 然而,我的基地控制员永远不会被直接使用。 因此,它用主计长结束。 而且,由于这不是控制员的实际任务,我认为它不应像控制员一样。

So, what should be the name of my base controller? Which one is better: MyBaseController or MyControllerBase or JustLikeOtherAbstractClasses ?

最佳回答

In our projects we are using the MyControllerBase naming convention. Because there is no guideline/convention how a Controller base class should be named you can use whatever name you like, just stay consistent.

基本来说,你正在这里指一个抽象的基类。

问题回答

暂无回答




相关问题
FTP In/Out Folder Name Best Practices

What best practices (if any) do you adhere to regarding setting up outgoing and incoming folders for your FTP clients? We typically use "outgoing" and "incoming", but no matter how you phrase the ...

Case Conventions in wpf using MVVM

Is there a standard for case and naming conventions in wpf/mvvm that differs from C#? I am accustomed to camelCase with the first character being lower case for private and upper case for public ...

Is it confusing to call this class a "factory"?

My understanding of a factory is that it encapsulates instantiation of concrete classes that all inherit a common abstract class or interface. This allows the client to be decoupled from the process ...

How to name a method that has an out parameter?

What is the common preference to name a method that has an out parameter inside? Usually I use Get as a prefix to mention that the method returns a value (like GetMyBusiness). But what if there is ...

Underscore _ as variable name in Python [duplicate]

Peter Norvig has an essay describing a program to solve sudoku puzzles, even the hardest ones, by combining deterministic logical operations and smart traversal of the possible solutions. The latter ...

Name of C/C++ stdlib naming convention?

I wonder if the naming convention used in C/C++ standard libraries has a name, or at least a cheat-sheet where I can lookup the rules. E.g. push_back -- underscore used setstate -- but not ...

Which name for a "smart" dictionary (hashtable)?

I m looking for a good name for a custom dictionary which automatically initializes the value for a requested key if it doesn t exist, using a delegate. The indexer implementation should help ...

热门标签