Hi,

I've just found this link to a post by the Ruby on Rails creator:

http://www.loudthinking.com/arc/000533.html

There are some interesting point he makes that made me think:

1) Structure generation done right (as RoR does) it's quite useful not
only as a quickstart but (probably) even more to support the
development process step by step by ensuring you are doing the right
thing without wasting time (even if you are already expert).
Quoting the post: "Structure generation drastically lowers the learning
curve by teaching the conventions through code instead of
documentation."

2) Form generation from the controller it's pretty nice, but doesn't
this break the MVC paradigm?
For example, suppose that I'm working with a designer and I want to
work only on the Model and Controller side, now I've got this template
that contains:

${form.insert(action=save)}

how can my designer customize it? I can give him the TableForm.template
output and let him customize that, but:
- He won't be able to work with the kid template and take advantage of
the ability to completely view it in its browser (one selling point of
Kid)
- I will need to integrate its work (on the View side) inside of my
controllers (the C side) by subclassing the TableForm class and
overriding the template with the customized one (more unwanted work for
me)
- Probably I will need to do the same for some of the widgets...

With code generation I will only need to give him the generated Kid
template.

Yes, if you change something on your model you will need to regenerate
the template, but how does this compare to the customization and
adaptation work needed by the other solution? with the View side
appearing on my Controller side? And what about the learning curve
needed to teach yourself the right way to do the customization work
(subclassing vs plain editing of HTML).

Maybe the simplest solution it's also the right one?

I don't want to start a flame, I'm only interest on hearing others
people opinions, it's important to get it right and make it easy if TG
wants to succeed.

Please excuse me for my bad english, it's not my native language and I
took me a while to write this down, also excuse me if I will not reply
often but I'm preparing some important exams :-(

Ciao
Michele

Reply via email to