Model1, Model2, MVC where does it come from, Java or C, C#?

Hi all,I wonder, Model 1, Model 2, MVC where does it come from, it comes from Java or C, C# ? :(help me!
[125 byte] By [Pham_Anh_Tuana] at [2007-10-2 1:17:29]
# 1
smalltalk
mchan0a at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
http://heim.ifi.uio.no/~trygver/themes/mvc/mvc-index.html
mchan0a at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
And I wonder where wheels come from... cars, trucks or bikes... ?IOW : OO patterns are not bound to a specific language, they can be applied at will, as long as you have an OO language
Torajiroua at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...
# 4

> And I wonder where wheels come from... cars, trucks

> or bikes... ?

> IOW : OO patterns are not bound to a specific

> language, they can be applied at will, as long as you

> have an OO language

I agree with your statement, but that doesn't prevent analyzing that, historically, the first wheels were logs used to roll big rocks - or whatever, hey I'm not a wheel expert :-)

Taking this angle, historically, well:

"MVC" was coined by smalltalk designers (or at least, without doing any smalltalk myself, I first read this term written by smalltalkers).

Model 1/2, by contrast, I only ever heard it in the context of JSPs - specifically, Model 2 is MVC applied to JSPs. One could apply the concept somewhere else, but then wouldn't the concept better be described as MVC?

jdupreza at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...
# 5

Model 2 is a specific subsystem of MVC where the controller is usually more tightly linked to the model than is the norm in MVC.

Sun describes it sometimes as PAC (Presentation, Abstraction, Contrl) or WebMVC.

The controller is typically just a marshaller with a service layer added between the model and the controller.

Controller marshalls incoming requests to the service layer and dumps the results back to the view.

In pure MVC the view only gets notified of the availability of results and is itself responsible for retrieving them.

A JSP doesn't (or rather shouldn't) call the model directly to retrieve data, it should be handed a package of data to work with by the controller servlet which the controller gets (possibly with indication of where to send it) from the model.

In true MVC the view would access the model directly (and possibly even hand a reference to the model in use to the controller).

jwentinga at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...
# 6
> smalltalkUm, smalltalk, it that a comment on the quality of the question or did you actually mean the Smalltalk programming language.Yeh ok, I'm being flipant :) but it's friday and all the really good responses have already been made!
MartinS.a at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...
# 7

it refers to the language.

late 1970s or early 80s it was first described in the the context of developing in smalltalk.

you should get the POSA and GOF books for more info on patterns, they are both veyr useful.

(POSA) "Pattern-Oriented Software Architecture" Buschemann et al

(GOF) "Design Patterns" Gamma et al.

--

M.Sc. in Computer Science

Freelancing software engineer

visit http://www.edlin.org to contact me regarding software projects

software_enga at 2007-7-15 18:38:42 > top of Java-index,Other Topics,Patterns & OO Design...