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

前端 未结 6 855
别跟我提以往
别跟我提以往 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:00

    It is an interesting point, if a word becomes 'boilerplate' in names then its probably a bit whiffy - if not quite a real smell. Perhaps using a 'Helper' folder and then allowing it to appear in the namespace keeps its use without overusing the word?

    Application.Helper.SharePoint
    Application.Helper.Authentication
    

    and so on

提交回复
热议问题