Was Rails the first framework to use this interpretation of MVC? Or did it come from somewhere else?
Was Rails the first framework to use this interpretation of MVC? Or did it come from somewhere else?
I much preferred Nitro to Rails for being more lightweight as well as more amenable to evolving from bare-bones PHP-style single-file Web apps to to large, robust sites. (It also had a notion of pipeline transformation of content that was quite slick.)
George Moschovitis, who created Nitro, ended up moving over to JavaScript. (https://github.com/gmosx/nitro)
The Ruby Nitro framework more or less morphed into Ramaze.
(For those curious about Ruby Web framework archaeology dig up a 2nd edition copy of Hal Fulton’s The Ruby Way (2006) and read the Web dev section. Caveat: I wrote the non-Rails parts of that section.)
It seems to me that, in that original design, the JSP servlet acting as a Controller was a multi-use object that would serve many requests?
To me, one of the weirdest things about Rails-style MVC is that a controller is reinstantiated for every request and then promptly thrown away. I'm used to thinking of controllers in desktop apps as rarely-destroyed objects which do a lot of communication with each other.
The Rails-style controller could just be called "RequestHandler" or something like that, IMO.
Jaw, meet floor.
This was seen as a terrible practice, whose sole benefit was to allow lazy programmers to have state variables in their controllers, and was promptly deprecated. Only to have Rails and other similar frameworks basically pick it up!
ref: https://en.wikipedia.org/wiki/Struts | https://en.wikipedia.org/wiki/Maypole_framework | http://www.perl.com/pub/2004/04/15/maypole.html