Good Namespace Naming Conventions

后端 未结 7 614
情话喂你
情话喂你 2021-01-14 06:00

I am creating a class library for a CRUD business application. The major \"categories\" of business objects (with related data access layer objects) are:

  • Maint
7条回答
  •  无人共我
    2021-01-14 06:19

    I think the project would benefit from a bit of abbreviation. When I've encountered problems like this in the past, I typically devote a bit of documentation to explaining a few abbreviations that serve as the namespaces. I usually restrict these shortened names to 3-5 characters. Not only does that add to general code readability in the form code, but I've also found that the shorter names lead to less confusion from other coders.

    I hope that helps. At the end of the day, it really just depends on your team's preferences...

提交回复
热议问题