I have been programming quite a lot now and still can't decide which of these packages hierachies was the best:package1  Class1Controller  Class1Model  Class1Viewpackage2  Class2Controller  Class2Model  Class2Viewor controller  Class1Controller  Class2Contollermodel  Class1Model  Class2Modelview  Class1View  Class2ViewIn other words, is it better to apply the MVC design pattern to classes or to packages? Is there any reason to choose one over the other?My question is language-agnostic, but I'm mostly a Java programmer, if it does any difference.
Packages organisation with MVC design pattern
mvc;packages
Short Answer:  It depends :-)Normally I would recommend your first suggestion because you put stuff in a package which belongs together.In your second example Class1Controller and Class2Controller may have nothing in common except that they are controllers.But as I said in the beginning, there may be a reason to use the second pattern instead the of the first.