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

Questions on design patterns

 
Edmund Yong
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1) From a high level architecture view, why do we need to know design patterns? For example, take a look at the template method pattern. If you are doing architecture, how can this pattern be useful at this level?

(2) From my understanding, the term "business objects" is the same as "domain objects", which refers to entity class objects (example: Part, Supplier and Shipment, etc). Then what is the Business Object Pattern?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. If you do detailed architecture and design, it's good to know design patterns.

2. Business Object is one of Core J2EE patterns.
If you mean domain models, they aren't need to be Entities, they can be Value Objects or Services, you can read Domain-Driven Design for more detail.
 
Edmund Yong
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The definition of business objects from this web site: http://en.wikipedia.org/wiki/Business_object_(computer_science):

Business objects are objects in an object-oriented computer program that represent the entities in the business domain that the program is designed to support. For example, an order entry program might have business objects to represent each orders, line items, and invoices.

Business objects are sometimes called domain objects; a domain model represents the set of domain objects and the relationships between them.


According to the definition, business objects are just objects, not patterns. Then what is this Business Object pattern that is mentioned in the core J2EE pattern?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing, don't trust anything in Wikipedia. Second, when read Wikipedia, take a look at reference section, you may get idea should you trust.

About your question, I will explain using metaphor.

Do you know Design Patterns [GoF]? I look up word "strategy" in a dictionary it means "a plan designed to achieve a particular long-term aim", from definition it's not a pattern, so what is Strategy pattern?

In short, it's only NAME. Business Object (pattern) is only a pattern's NAME that Sun thought it's a good name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic