Coehl
❔ File naming convention preference
I usually establish one as what should be considered the User. Then just further define the other.
For example, mvvm? There's a User and UserViewModel. User gets passed around for business logic easily and usually gets turned into UserViewModel before hitting the UI.
Same for a rest API. There's a main User that usually correlates to what gets saved in the database and maybe it's even what you get in a GET. Then I might have CreateUser, UpdateUser, etc for the other endpoints. All of these might share some interfaces too like IUser and ICreatable or something
17 replies