I hate OOP, its starting to give me nightmares...
I just don't get OOP, never have, probably never will...
I have tried to use mvc to organize my OOP into something that isn't just a list of functions, and also works...
Getting to the point: I have no idea how I should go about writing this application.
First a small login window pops up where you can create, edit, delete, or login to an account.
Once you login the main window appears where most of the work is done.
Other windows can be opened from this main window, but it will remain there until the end of the application.
Now my first problem is, that I want (Or at least, I think I want) there to be a head model and controller for the entire app, so that the login window can be an offshoot, and everything will work...
The problem is that this means the model and controller have to create children for the login window, but the view has to be connected to the children rather than the top-levels.
If that happens then I have to create views with the controller? What the hell?
I thought they were all supposed to be seperate?
I don't get this at all...
Small demo:
Code:
m = myModel()
v = myView()
c = myController()
class myModel:
#create sub-model for login form
class myController:
#create sub-controller for login form
class myView:
#do whatever it is that a view does
class subModel:
#work the profile selector
class subController:
#and this has to patch the whole application together or something?!
Sorry if I'm confusing you, as you can see I don't have any idea what I'm doing...
Comitas. Brevitas. Nulla ambitio.
Bookmarks