By activa
via blog.activa.be
Published: Jul 24 2007 / 12:02
From ASP/JSP/PHP to Ruby On Rails. A change for the better? A little bit, but we are still mixing application logic and presentation (markup).
SaveShareSend
Tags: frameworks, gui, methodology, standards
Comments
michaelklishin.myopenid.com replied ago:
Seems that you do not quite get it. The logic is in the controller and with new RESTful way it is perfectly clear. There is some logic in views just for cases "hide this for those don't have a credit".
Or try Lilu as a Rails template engine that uses 200% clean HTML + separated Ruby code approach.
activa replied ago:
Did I step on some toes? Are you a Rails evangelist?
I have nothing against presentation logic (code) embedded in views. I only resent embedded application logic.
c-ovidiu.tk replied ago:
Maybe I don't get it, but I'm perfectly fine with “the markup is controlling the application”. That's the way it should be. I mean, all those “hrefs”, “action”s etc. are in the markup. It's the user behind the browser that controls the application.
activa replied ago:
Markup should signal the "controller" (which runs on the server), which then decides what to show. But that's a completely different issue than what this is about.
c-ovidiu.tk replied ago:
Ok, so I definitely didn't get it. Signaling is different than controlling you say. Very well. What's controlling then? What did you mean by “the markup is controlling the application”? Cause looking at my views, I don't see how they control the application, other than that signaling stuff. I'm a PHP coder and I use CakePHP, PRADO and Zend Framework.
Voters For This Link (10)
Voters Against This Link (0)