MVC

  • Thread starter Thread starter Alisa
  • Start date Start date
A

Alisa

Hi, I am reading a lot about MVC pattern and I wonder - are there any
known programs that were developed and do not implement MVC?
I thought Outlook is one becuase the item object is not seperated from
it's UI/ form - but I am not sure...
Does any one have a stronger example?
Thanks,
Alisa
 
A good GUI design will always use the MVC pattern where you seperate the
view of a class/model from the class itself. It is not because you don't see
several different views of an Outlook item that Outlook does not use the MVC
pattern.

When creating a Winforms or Web application you use the MVC pattern, maybe
even without knowing it. You create GUI elements (VIEW) and hook to the
events and in these event you write logic (CONTROLLER) that changes the data
of classes (MODEL).

Gabriel Lozano-Morán
 
Hi,
IMHO, .Net technologies have own implementation way of MVC so can't say that
exactly MVC is implemented but....
ASP.NET has View[aspx or aspx.cs or aspx.vb] and Controller [aspx.cs or
aspx.vb] and Model is not hard coded visual thing but whatever data model is
used, you can consider as MODEL.
Same way, in WinForms.

Basically,
View is UI and related classes,
Controller: Controlling classes which interected by UI for any event
handling or for any other custom actions[e.g event handling in Asp.Net and
Windows forms]
Model: A object representation of your Data

You must be using all these things even you dont know sometimes, partially
or fully.....

If you dont follow the MVC architecture exactly then also it will be there
partially always. so it depends on the appliction design that how it is
implemented.

Also, MVC is not a pattern in fact, its an architecture which is built using
4-5 design patterns like Observer, Composite etc.

It helps you to make your application more extensible, and manageable by
implementing these patterns.
 
Hi Gabriel,
Thanks for the quick answer.
I need an opisite examle for mvc - do you have one?
 
There are many awful programs that should implement simple patterns and do
not. There are also many that implement the pattern almost by accident.

Many Windows Forms applications use databinding. This is an implementation
of MVC that happens under the covers.

MVC is such a simple pattern that it's almost trivial to implement in a
forms application.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Hi,
IMHO, .Net technologies have own implementation way of MVC so can't say that
exactly MVC is implemented but....
ASP.NET has View[aspx or aspx.cs or aspx.vb] and Controller [aspx.cs or
aspx.vb] and Model is not hard coded visual thing but whatever data model is
used, you can consider as MODEL.
Same way, in WinForms.

Basically,
View is UI and related classes,
Controller: Controlling classes which interected by UI for any event
handling or for any other custom actions[e.g event handling in Asp.Net and
Windows forms]
Model: A object representation of your Data

You must be using all these things even you dont know sometimes, partially
or fully.....

If you dont follow the MVC architecture exactly then also it will be there
partially always. so it depends on the appliction design that how it is
implemented.

Also, MVC is not a pattern in fact, its an architecture which is built using
4-5 design patterns like Observer, Composite etc.

It helps you to make your application more extensible, and manageable by
implementing these patterns.

HTH,
 
Hi Dear Alisa,

You want an example of Big Company Products? or any other will do?

Normally, All the VB6.0 Application where it was not supporting full
Object Orient Programming, you can see several custom build application
where View and Controller would be clubed.

Bye
Venkat_KL

For Anything and Everything, Please Let Me Know
 
Back
Top