PC Review


Reply
Thread Tools Rate Thread

clarification in pag book

 
 
=?Utf-8?B?cm9kY2hhcg==?=
Guest
Posts: n/a
 
      16th Nov 2004
hey all,

i'm reading about app architecture in patterns and practices and there was a
paragraph i need some clarification on. please keep in mind that i'm new to
this object oriented stuff so talk lamen.

Here's the paragraph:
Understand how components communicate with each other before choosing
physical distribution boundaries. Keep coupling low and cohesion high by
choosing coarse-grained, rather than chatty, interfaces for remote
communication.
End of paragraph.

What does coarse-grained mean in this sense? or chatty?

thanks,
rodchar

 
Reply With Quote
 
 
 
 
Bob Powell [MVP]
Guest
Posts: n/a
 
      16th Nov 2004
Don't try to create one interface that does everything. Group
functionalities into several smaller and more managable interfaces. This
enables you to implement one interface in one class and another interface in
another class rather than having to create huge monolithic classes that
*have* to implement the whole interface.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"rodchar" <(E-Mail Removed)> wrote in message
news:760CAD21-8B9D-4C76-A70C-(E-Mail Removed)...
> hey all,
>
> i'm reading about app architecture in patterns and practices and there was

a
> paragraph i need some clarification on. please keep in mind that i'm new

to
> this object oriented stuff so talk lamen.
>
> Here's the paragraph:
> Understand how components communicate with each other before choosing
> physical distribution boundaries. Keep coupling low and cohesion high by
> choosing coarse-grained, rather than chatty, interfaces for remote
> communication.
> End of paragraph.
>
> What does coarse-grained mean in this sense? or chatty?
>
> thanks,
> rodchar
>



 
Reply With Quote
 
=?Utf-8?B?TmlnZWwgQXJtc3Ryb25n?=
Guest
Posts: n/a
 
      16th Nov 2004
Hi rodchar

I would say that this is to do with the creating a distributed application
architecture - network round trips are expensive and slow.

So make sure that your design takes this into account. Rather than having a
class with multiple independent properties, which in a distributed
application could involve mutiple round trips across the network, design your
classes to do as much work as possible in a single round trip.

HTH

Nigel Armstrong

"rodchar" wrote:

> hey all,
>
> i'm reading about app architecture in patterns and practices and there was a
> paragraph i need some clarification on. please keep in mind that i'm new to
> this object oriented stuff so talk lamen.
>
> Here's the paragraph:
> Understand how components communicate with each other before choosing
> physical distribution boundaries. Keep coupling low and cohesion high by
> choosing coarse-grained, rather than chatty, interfaces for remote
> communication.
> End of paragraph.
>
> What does coarse-grained mean in this sense? or chatty?
>
> thanks,
> rodchar
>

 
Reply With Quote
 
=?Utf-8?B?cm9kY2hhcg==?=
Guest
Posts: n/a
 
      17th Nov 2004
Thank you for the great replies.

"rodchar" wrote:

> hey all,
>
> i'm reading about app architecture in patterns and practices and there was a
> paragraph i need some clarification on. please keep in mind that i'm new to
> this object oriented stuff so talk lamen.
>
> Here's the paragraph:
> Understand how components communicate with each other before choosing
> physical distribution boundaries. Keep coupling low and cohesion high by
> choosing coarse-grained, rather than chatty, interfaces for remote
> communication.
> End of paragraph.
>
> What does coarse-grained mean in this sense? or chatty?
>
> thanks,
> rodchar
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clarification need, not just by me JMay Microsoft Excel Programming 3 20th Aug 2009 01:01 PM
Clarification please... JMay Microsoft Excel Programming 9 24th Apr 2004 05:55 PM
Clarification in COM Carify Me Microsoft VB .NET 9 21st Feb 2004 08:41 PM
clarification Baskar RajaSekharan Microsoft C# .NET 0 28th Oct 2003 12:46 PM
Need clarification Manu K.U Microsoft Windows 2000 Terminal Server Clients 1 11th Aug 2003 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:14 AM.