design - What are some class names that would signal a need for refactoring? -


I find some articles that suggest that some words are never used as a class name should do. Example:

Manager

Example:

The reason: Since almost all the class "management" means something more "manager", so people can put many responsibilities in the "manager" class, while still being able to claim the class "only one thing" . Consequently, naming a class with "manager" does not really say much about what actually does. For example, in this article mentioned, this point is shown: For example, take a class called "UrlManager" - you can not tell whether the pool manages or uses the URL. All the names tell you that this is not a URL, but it works in some way with them. On the other hand, gives a better picture of what the class named "UrlBuilder" does.

Another example:

Helper

Reason: The names of a class like "ThreadHalper" surprise people That is why it is needed and why it can not be just part of the "thread" class. Is it really an adapter or decorator? If so, give her name in such a way that the class "thread" is already taking too much responsibility? If so, give the reactor and the new class a meaningful name. "Helper" does not tell anything what it is doing or how it is helping.

What are the other words in the class name that will indicate the need for refactoring or redesign and what should be avoided? Why?

Edit: I would think that these words are used too many

  • They have a broad meaning
  • They fit in almost all references
  • They are designers thinking about a better design or name
  • People believe that it is okay to use them

The book was listed more but no reason was given:

Manager, processor, de Avoid interpretation information, such as words.

It would be great if someone could provide a possible reason for them.

Related questions:

post-text "itemprop =" text ">

Utilis .

Why check this Chris precedent

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -