Assaph Mehr
4/21/2005 11:54:00 PM
Hal Fulton wrote:
> As one of the slides indicates, part of my confusion is different
> ways of thinking about what a "note" is.
[snip]
> What are your mental (or other) tools for dealing with this sort
> of complexity?
Duck typing :-)
If you do employ MVC the the data-centric note is not concerned with
the view-centric note. That's one thing less to worry about.
So how about a data-centric note that duck types to the appropriate
usage? e.g. #to_str, #to_yaml, #properties, #key etc. Then have the
view-centric note just reference (and delegate to) the data note.
But as stated by others - Make It Work before you Make It Right. You
might change your requirements, your understanding of the problem etc.
For example, you have a static category tree where notes are filed. As
my grad project, myself and another student made a bookmark sharing
application. Each bookmark had categories, but each user built his own
tree of categories for display...
Which creates a problem or the UI but actually simplifies the data
model.
HTH,
Assaph