Apart of the code conventions to use camelCase, PascalCase etc., are there any conventions for naming packages and classes in Java?
For example, I have an mvc project and the main package is com.myproject. In this package I have:
- com.myproject.model
- com.myproject.view
- com.myproject.controller.
Is there any convention or best practise to give a name to the class in these 3 packages? Like for the package 1 avoid model in the classname, or something like this? And if I want to use the same class name like User, what is better: to use UserModel, UserView, UserController, or give the same name to the 3 classes? Is there some kind of best practise or naming convention to do this?
User
would be confusing. They're not users, they're controllers or views or models, related to user.