boy, this discussion is getting busy.

Another thought is to create a comment service that anything could
use.  For instance you might have a photo that needs comments.  Then
your photo functionality could register with the comment service. 
Likewise your articles.  Maybe you want to post some documents on your
site and let people comment on them.  Then you have a document manager
that registers with the comment service. (technically, a photo is just
a document afterall).

plus, with a comment service you could use the onc service across many
apps including the blog without havnig to recreate comment
functionality each time.  The service could provide the form for
posting the comment and everything if you wanted it to (which you
could then style to fit in your sites look and feel).




On Wed, 12 Jan 2005 11:46:56 -0500, Brian Kotek <[EMAIL PROTECTED]> wrote:
> Thoughts on why that would be better or worse than this in the manager:
> 
> public void addComent( int articleID, commentTO commentTO ) {
>  commentDAO.save( articleID, commentTO );
> }
> 
> In that case you don't need to call the articleDAO at all, nor is the
> article responsible for doing anything with the comment. And if you had
> the articleID as part of the commentTO you could actually just do:
> 
> commentDAO.save( commentTO )
> 
> 
> > >From the ArticleManager's point of view, this is all that happens:
> >
> > var article = ArticleDAO.getArticle( articleID );
> > var comment = article.addComment( commentTO );
> > ArticleDAO.createComment( comment );
> >
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
> 
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[email protected]
> 


-- 
--------------
[EMAIL PROTECTED]
http://blog.rawlinson.us

I have 9 gmail invites,want one?
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to