Using mvc architecture is excellent.
1 and 2 - In the link above you will see a UML diagram of the mvc architecture. Regarding this, I connected the presentation signals to the controller methods, and then will call the presentation method from the controller.
3 - Regarding database access, I would add a data access part in your architecture that specializes in data access. You can have an interface to determine the signature of the data access object, and then implement it in a specialized class for the database (this way you can change the location of the data without changing the entire application).
4 - You call a cool name good. But I would go further and name the classes:
- To view: ClassNameView
- For controller: ClassNameController
- For DataAccessObject: ClassNameDAO
- Model: ClassName (and IClassName for the interface)
Hope that helps
Patrice bernassola
source share