Youngho Cho wrote:
>
> Hi,
>
> I have a basic question.
>
> Now I'm using Webmacro template but I think this question is also for velocity.
>
> I have a screen class which has some context items in it.
>
> Let's say the context items names "a" , "b" , "c" , "d" , "e"....
>
> The "a" , "b" "c" items use in A screen and "c" , "d" , "e" items use in B screen.
>
> In this case,
> Do I make a indepenet screen class for item "a" , "b" , "c"
> and another screen class for item "c" , "d" , "e"
> or use original class for both screen ?
>
> Which one is better approach ?
> What is guide rule for make a new screen class?
>
> please give me a comment.
I would recommend using as few screens as possible. This improves the
MVC separation. Use new screens for things such as security concerns.
If many objects are placed into the context it is important that their
instantiation be lightweight. If this is not the case you will probably
want to break things up a little. If you are absolutely certain that
"d" would never need to be used with "a" or "b" then you might want to
create a new screen. There are no easy to follow rules.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]