|
>From what I've seen there is a great deal of code generation in Rails
that is line for line in _javascript_.. page.visual_effect here, reset a
form there, insert html here.. I'm sure it saves a lot of code in
other cases, and you can write plugins (correct term?) yourself to let
it do anything you need it to, but to me these things defeat some of
the primary purposes of a high(er)-level code generator.. Some things
have already been simplified as much as they can be and any further
just makes things harder. If you achieve the correct separation of data and interface, then handling server code, client code, and the communication between is quite easy. Practically all of my Ajax requests are for pure data, allowing me to code the GUI in one environment (html, css, _javascript_, etc..) to a very fine detail, and the backend in another (PHP, MySQL in my case). Not quite as nice as Rails, but spitting out data on the server is as simple as json_encode and parsing it on the client is as simple as json_decode (or easier if the Content-type: application/x-json feature is added). Someday I'll have to get my hands dirty with Rails, but at the moment I don't see that it'd be beneficial enough. I write a lot of _javascript_ that has very specific purposes that couldn't be avoided by using Rails or any other code generator. To each his own! Colin Thomas Fuchs wrote: Am 19.02.2007 um 04:34 schrieb Colin Mollenhour: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [Rails-spinoffs] Re: Need help to learn Prototype Program... Colin Mollenhour
