请问domain driven model design该如何设计?
主题:
请问domain driven model design该如何设计?
网友:
这个问题,我现在已经想得比较清楚了。简单说就是彻底忘记持久化,压根不想什么DAO的问题,只做面向对象的设计,就这么简单。
网友:
不是说DAO用不到,而是设计时不考虑它,需要的时候就建一个。Hibernate确实是个好东西,现在我根本不把DAO当first class公民对待,精力全部集中在面向对象的设计上。反正我总可以有办法把对象映射到数据库。
网友:
设计的时候总要考虑到分层吧,一般是ui/service/domain/persistent,考虑到persistent的时候就要去考虑dao呀。
网友:
我看了看论坛相关的文章:quake wang、sayor、gigix都有这种现成例子呀!
网友:
我理解,领域驱动设计的流程是:
领域需求-->领域建模-->根据模型设计-->设计实现(根据模型)-->发现问题-->新一轮领域需求或检查-->再建模-->再设计-->再实现 ......
这个过程是个迭代的过程。设计时以设计为重点,如果能考虑实现当然最好,不过有的时候实现只是一种细节而已。如果真的实现不了,可以回头再修正模型和设计吧。
网友:
总感觉目前的各种java框架,支持真正的面向OO的DDD很困难,即使通过hack方式实现了,自己都觉得别扭,更别说让别人维护了。
网友:
框架是实现,DDD是设计。
DDD强调的是对领域的逐步加深认识,通过迭代开发和重构实现模型。
是不是完全面向OO,应该不是重点吧。
DDD那本书上也讲到,实现时可以根据实际情况妥协一下。
分享到:
相关推荐
'Eric Evans has written a fantastic book on how you can make the design of your software match your mental model of the problem domain you are addressing. 'His book is very compatible with XP. It is ...
JavaScript Domain-Driven Design allows you to leverage your JavaScript skills to create advanced applications. You'll start with learning domain-driven concepts and working with UML diagrams. You'll ...
Model-Driven Design Hands-on Modelers Refactoring Toward Deeper Insight II. Building Blocks of a Model-Driven Design Layered Architecture Entities Value Objects Domain Events * Services Modules ...
Domain-driven design is an approach to software development for complex needs by connecting the implementation to an evolving model. The term was coined by Eric Evans in his book of the same title.
Put another way, my vision has been to provide a book that will put Eric Evans' Domain-Driven Design [Evans DDD] and Martin Fowler's Patterns of Enterprise Application Architecture [Fowler PoEAA] in ...
模型驱动软件开发技术的发展综述,详细回顾了模型驱动系统工程的发展和在航天中的应用,深入分析了模型驱动系统工程方法的优势、劣势等。本文对此外都进行了详细介绍和说明。
Xamarin used for developing mobile applications, is one of the app model implementations for .NET Core infrastructure. In this book, you will learn how to design, architect, and develop highly ...
Do an Initial Domain Model Before You Write the Use Cases. . . . . . 50 Driving Your Design (and Your Tests) from the Use Cases. . . . . . . . . 51 Use Case Modeling in Theory. . . . . . . . . . . . ....
Part II begins to lay the groundwork to help you properly architect your application, providing you with a deeper understanding of domain-driven design and the Model-View-ViewModel design pattern....
Distributed Domain-Driven Design Chapter 4. Good Actor Design Chapter 5. Good Data Flow Chapter 6. Consistency and Scalability Chapter 7. Fault Tolerance Chapter 8. Availability Chapter 9. ...
Examine domain driven design in both theory and implementation Shift your approach to code first model later–including multilayer architecture Capture the benefits of prioritizing software ...
Examine domain-driven design in both theory and implementation Shift your approach to code first, model later–including multilayer architecture Capture the benefits of prioritizing software ...
Examine domain driven design in both theory and implementation Shift your approach to code first model later–including multilayer architecture Capture the benefits of prioritizing software ...
这是有关如何使用Domain Story Modeler的简短指南。 我们建议将浏览器切换到全屏模式(在大多数浏览器中:按F11键)以增加可用的建模空间。 调色板 显示您可以选择用来记录您的领域故事(演员和工作对象)的图标,一...
You just focus on the actual domain model and its characteristics, and forget about the persistence details, which is pretty much what domain driven design (DDD) is about. It sits on an API for ...
Summary Entity Framework Core in Action teaches you how to access and update relational ...Applying domain-driven design to EF Core Getting the best performance out of EF Core Covers EF Core 2.0 and 2.1
What's Inside Querying a relational database with LINQ Using EF Core in business logic Integrating EF with existing C# applications Applying domain-driven design to EF Core Getting the best ...
Chapter 4: Domain-Driven Design of Big Data Systems Based on a Chapter 5: An Architectural Model-Based Approach to Quality Chapter 6: Bridging Ecology and Cloud: Transposing Ecological Part 2: ...
As a Model-Driven Development methodology (MDD) for the specific domain, Domain-Specific Modeling (DSM) has been widely and successfully used in system design and analysis of specific areas....