Home » Developing U++ » U++ Developers corner » MVC example
Re: MVC example [message #14886 is a reply to message #14875] |
Tue, 18 March 2008 23:04 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
In ancient times there were no useful gui toolkits nor simple database interfaces, so creating gui and storing/retrieving data were very complex tasks.
So some clever programmers started separating these ugly code from the main logic of the program.
The naming of these separated parts were View and Model and they labeled the main logic of the program as Controller.
In U++, Model and View are so simple, that some people think, that they are not exist at all.
But View is simply in the .lay file, Model in the .sch file and Controller is your C++ code.
Of course, model can be a single file too and you can use the extremely simple serialization API in U++ for simple file storage.
The problem is, that on some universities, professors are sticked in the past, and can not understand, that MVC is a workaround to a currently not existing problem.
Edit: check SQLApp or HomeBudget in examples as simple examples.
[Updated on: Tue, 18 March 2008 23:10] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jun 02 11:35:57 CEST 2024
Total time taken to generate the page: 0.02028 seconds
|