Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MVC and Class Diagrams  RSS feed

Paul Mrozik
Ranch Hand
Posts: 117
Chrome Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While working on my own project, I noticed I've sort of hit a wall of complexity. A lot of classes, a lot of functionality, and so far it looks a bit messy. I will continue with the messy coding just to keep things moving forward, but in the meantime I'd like to design the whole program using UML diagrams from scratch. It's relatively simple, so taking bits and pieces out to put it back together into something more sensible shouldn't be a problem.

So my first question is regarding the MVC model. I watched this tutorial on YouTube and it shed some light as to what MVC is all about and frankly, it sounds great. What I'm a bit confused about is, do I break up every GUI window into a MVC model?

So if I have a Add Student window I'd need the following classes:

StudentModel - stores student data and has different methods
StudentView - just the GUI
StudentController - links the above to make the program functional

and for the LessonReview window I should have:


and so on?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!