1 / 12

Domain-Driven Design

Domain-Driven Design. Chapters 10-13 Refactoring Towards Deeper Insight. Patterns. Intention-revealing Interfaces Side-effect Free Functions Assertions Conceptual Contours Standalone Classes Closure of Operations Strategy, Composite. Assertions in Java.

emory
Download Presentation

Domain-Driven Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Domain-Driven Design Chapters 10-13 Refactoring Towards Deeper Insight CS527 - lecture 15

  2. Patterns • Intention-revealing Interfaces • Side-effect Free Functions • Assertions • Conceptual Contours • Standalone Classes • Closure of Operations • Strategy, Composite CS527 - lecture 15

  3. Assertions in Java • New Java statement in version 1.4 • assert exp1; • assert exp1: exp2; • If exp1 is false, throw an exception and give it exp2 as an argument • http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html CS527 - lecture 15

  4. Conceptual contours • Choose a design that does not have to change when you add new features. • If new features don’t fit into your design, it proves the design was deficient, so go ahead and rewrite it. CS527 - lecture 15

  5. Principles • Model must be readable. • Focus on what model looks like, not on what implementation of model looks like. • Each piece should be simple. • Declarative style CS527 - lecture 15

  6. Analysis Patterns • Arlow, J & Neustadt, I. (2004) Enterprise Patterns and MDA: Building Better Software With Archetype Patterns and UML, Addison-Wesley. • Fowler, M. (1997). Analysis Patterns, Addison-Wesley. • Hay, D. C. (1996). Data Model Patterns - Conventions of Thought. Dorset House Publishing. • Hay, D.C. (2006) Data Model Patterns – A Metadata Map. Morgan Kaufmann. • Silverston, Len & W.H. Inmon & Kent Graziano (1997) The Data Model Resource Book: A Library of Logical Data Models and Data Warehouse Designs, John Wiley and Sons. • Silverston, Len (2001) The Data Model Resource Book Volume 2: A Library of Universal Data Models by Industry Type, John Wiley and Sons CS527 - lecture 15

  7. Action Action time * Party * Location CS527 - lecture 15

  8. Proposed and Implemented Actions Action Proposed Action Implemented Action CS527 - lecture 15

  9. Completed, Abandoned, Suspended Actions Status * Action Completed Abandoned Suspended Time Period * CS527 - lecture 15

  10. Plan dependent Proposed Action * * consequences Plan CS527 - lecture 15

  11. Resource Allocation Action Resource Type Proposed Action Implemented Action Resource Allocation quantity books uses * * CS527 - lecture 15

  12. Declarative Style Employee rate earned PayCheck * TimeCard * TimeCardItem time Invoice Customer charged billed paid owed * Payment charged = timeCardItem.time * timeCardItem.timeCard.employee.rate * 3 CS527 - lecture 15

More Related