2008年8月14日星期四

Re: [fw-mvc] Integration of Models

David Toniolo wrote:
>
> If you use 'new', you need to include the Model's file/class. I thought it
> would be better to include all these files not in controllers but in
> helpers. Why? Hm, i think it is cleaner and maybe you can include them in
> an extra file all together? Hm...
>

You aren't making a very solid case. Writing a new Proxy class for models
doesn't seem cleaner than using autoload, for example.

You're making the same mistake I see in nearly every programming proposal I
read -- you've identified the solution before you've defined the problem,
and now you're aimlessly trying to invent a reason for the solution you've
designed.

If you want to create a Proxy mechanism for the sake of practice, or if you
just want to play, then that's fine. There's nothing wrong with
experimentation, it's a good way of learning.

However, I would point out that learning how to write a technical proposal
is just as important a skill for professional software engineering as
learning programming languages, design patterns, or other technology.

Regards,
Bill Karwin
--
View this message in context: http://www.nabble.com/Integration-of-Models-tp18985795p18989348.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: