Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Good Practices About patterns

 
guillermo urdaneta
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You Guys,

I have a question=>

Can i using for an(one) Action Class, two business delegates, icall one instance(first bdlegates) for one method and other(second bdelegates) for other method, you know i wanna make a clear design, no an spagetti in one BDelegates.

The problem is all i read about bdelegates, i saw one action->one Bdelegates

But i am confusing, because i think i can call a business method from bdelegates, not only one.

You know is something like a good architecture.

I tried to be clear.Sorry.

may i have your advises.

thanks
gurdaneta
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to further understand the purpose of a Business Delegate.

Mapping one Business Delegate to one method is very poor design and an inappropriate use of the design pattern. For example, if the application has two hundred business methods, you should not have two hundred Business Delegates.

The Business Delegate is the connection between the Presentation application and the Business application. If you change the Business application implementation, you sould easliy be able to just modify the Business Delegate so that is uses the new implementation. If you have a ton of Business Delegates, this would not be so easy.

A Business Delegate is a logical abstraction of the application's business services (methods). You have to design methods with the right level of granularity.

To be fair, you should also work on your English. I'm confident that this will help you understand technical material better. And improve the way you communicate with others. This comment is not to insult you, but to help you.

"I" is a word in English and should always be capitalized, both at the beginning of a sentence and within it.

"When I was a young boy..."

"Mary and I drank all night..."
[ July 08, 2008: Message edited by: James Clark ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic