DEV Community

Discussion on: Do you have a process for naming things?

Collapse
 
wes profile image
Wes Souza

Oh that's complex.

I have some loose rules:

Make sure everything that is global is properly prefixed

  • APIOrder
  • APIOrderBag
  • APIOrderProduct
  • APIOrderProductIngredient

Exceptions are suffixed with WithSomething, FromSomewhere, etc

  • Menu
  • MenuFromGlobal
  • MenuFromStore

Build a glossary for your project

Basically indicates that Account, User, Person, Individual are all treated as User.


Maybe more, I don't remember.

Collapse
 
kleene1 profile image
kleene1

Interesting