Re:MVC is dead, it's time to MOVE on
by TylerE on Monday July 02, 2012 @05:59PM
(#4191265)
Bullshit. Please show me your Rails-or-similar app that's doing INPUT parsing in the view (embedded JS doesn't count)
[ Parent
| on HN ]
Re:MVC is dead, it's time to MOVE on
by Androsynth on Monday July 02, 2012 @06:08PM
(#4191300)
When you click a link on a web page, it gets routed to a controller action. Thats done because the link was generated with the url: example.com/controller/action. Its not about parsing input, its about routing.
Re:MVC is dead, it's time to MOVE on
by randomdata on Monday July 02, 2012 @08:31PM
(#4191831)
HATOES says that your XML/JSON/whatever needs to have those same links. What is the difference between an <a href=""> link in HTML and a { action_url: "" } property in JSON?
Re:MVC is dead, it's time to MOVE on
by Androsynth on Monday July 02, 2012 @09:23PM
(#4191976)
Nothing I suppose. I don't think that html vs json was what MVC's[1] creators had in mind for it, but if the json is rendered in such a way that it has links pointing back to the controller, it is a view.
[1] Although were talking about Model 2 here, so thats irrelevant. Come to think of it, this whole discussion is pointless: we're arguing about whether views in a Model 2 architecture are proper MVC views...