Is the word “Helper” in a class name a code smell?

前端 未结 6 834
别跟我提以往
别跟我提以往 2020-12-24 05:28

We seems to be abstracting a lot of logic way from web pages and creating \"helper\" classes. Sadly, these classes are all sounding the same, e.g

ADHelper, (Active D

6条回答
  •  轮回少年
    2020-12-24 06:03

    Depends on the actual content of the classes.

    If a huge amount of actual business logic/business rules are in the helper classes, then I would say yes.

    If the classes are really just helpers that can be used in other enterprise applications (re-use in the absolute sense of the word -- not copy then customize), then I would say the helpers aren't a code smell.

提交回复
热议问题