So I'm having this issue. I'm a student and also am working but somehow I was never told or shown how to exactly put classes to packages according to good practices. In my job the project is big, but created long time ago by people who aren't best programmers, so it's all very chaotic. At my university nobody seems to care about this.
I feel like it's very basic thing and yet I'm not entirely sure.
I will ask the question with java in mind, so let's say that I have those classes like User
class, UserForm
for changing user data class, UserController
class, UserRepository
class and let's say the same classes for something not that related to user, like Shop
.
How should I put those in the packages? What should the structure be?