re: Do you have a process for naming things? VIEW POST


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.

Code of Conduct Report abuse