Link Details

It's not like it's a half-day or anything like that. Login and vote now.
Link 31447 thumbnail
User 236575 avatar

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).
  • 10
  • 0
  • 1380
  • 324

Comments

Add your comment
User 224073 avatar

michaelklishin.myopenid.com replied ago:

0 votes Vote down Vote up Reply

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.

User 236575 avatar

activa replied ago:

0 votes Vote down Vote up Reply

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.

User 225823 avatar

c-ovidiu.tk replied ago:

0 votes Vote down Vote up Reply

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.

User 236575 avatar

activa replied ago:

0 votes Vote down Vote up Reply

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.

User 225823 avatar

c-ovidiu.tk replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)