In article <FM->,
Lew <> wrote:
> jmDesktop wrote:
> >> I am curious about something, though. Was JSF and JavaBeans created
> >> as a response to the separation of layers found in ASP.NET (at least 2.0)
> >> or were they simultaneous,
>
> Arne Vajhøj wrote:
>
> > No. Separation of presentation and code was done before ASP.NET existed.
> >
> > Look for framework like Struts.
> >
> > JSF is just the newest and official way of achieving the same.
>
> "Model 2", the Sun fundamental MVC pattern, has been around since at least
> 1999.
> <http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html>
>
> 2002.
> <http://java.sun.com/blueprints/guide...applications_2
> e/web-tier/web-tier5.html>
>
>
> Marty Hall, the noted Java writer and professor at Johns Hopkins, reputedly
> marked ten points off for every line of scriptlet in a JSP.
>
> >> or just one quicker than the other to get it to market?
>
> I would say yes, Sun was indeed much quicker than Microsoft to get it to
> market. Good point.
>
> Seriously, according to Wikipedia,
> <http://en.wikipedia.org/wiki/Model-view-controller>
> > The pattern was first described in 1979[1] by Trygve Reenskaug, then
> > working
> > on Smalltalk at Xerox PARC. The original implementation is described in
> > depth
> > in the influential paper Applications Programming in Smalltalk-80: How to
> > use
> > Model-View-Controller.[2]
MVC is a very simple design pattern that helps you organize the
interaction with a complex state machine. It was even used in the
earliest arcade games
Something like:
Gather button, switch, and clock states
Apply inputs to game model
Analyze game model for state changes
Exit if new state is not game play mode
Apply new states to game model
Iterate through model objects to rasterize sprites
Iterate through model state changes for hardware audio pulse
Iterate through model state changes for hardware video effects
Wait for VBL
Swap video buffers
--
Block Google's spam and enjoy Usenet again.
Reply with Google and I won't hear from you.