Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CodeBlock of GUI

<< < (3/3)

stahta01:
Other than setting the Compiler options where do you think the extra overhead and work needed to use Model-view-controller design would be desired?

What I read in last 5 minutes implies, that the Model-view-controller design is best when large amount of data elements is used.

Tim S

MortenMacFly:

--- Quote from: stahta01 on August 25, 2007, 04:16:16 am ---What I read in last 5 minutes implies, that the Model-view-controller design is best when large amount of data elements is used.

--- End quote ---
I don't really get it, too. At work I practice MVC a lot. But this work is related to a huge configuration database and parameters. There the MVC pattern really fits. I don't see MVC for a dev-IDE though... Maybe for minor parts but how is a compiler front end related to a model???

wwolf:
I did not mean the compiler front end to be a model. :)  Anyways, an IDE is not a compiler front end, that is the parser (and some more) of the compiler... as far as I know.

However think of an IDE that parses the compiler output, and can show it in different ways.  One view is the normal text view.  Another one may be a collapsable view where template or name lookup related (incredibly long) messages are collapsed (like Scintilla does with code) and they can be opened when you click them.  Yet another view (to the same Model) is signs inside the open editors that show which line has a warning or an error.

wwolf:
As some of the linked documents (from the WikiPedia page) clearly state: MVC is not necessarily the easiest design choice for all possible problems.  All I wanted to point out is that it is an option that we want to think about when we design.  And there can be absolutely valid reasons why not to do it.  However I believe that "it will be slow" is not one of them, unless we have tested it on a sensible prototype that it is indeed slow.

Anyways, I want to point out again that I am not advocating to change Code::Blocks to use MVC. :)  I just wanted to show a (possibly) viable option, so that we all know about it.

Navigation

[0] Message Index

[*] Previous page

Go to full version