zoukankan      html  css  js  c++  java
  • 090614 T DDD与591jj

    读了《DDDQ》的Service后,发现其理论与当初(大概200808-200812)设计591jj架构时的service竟不谋而合!其讲解简直就是591jj中service的全面解释!
    DDDQ的主要内容第三章MDD,其所述知识,竟也和《PEAA》中的ORM理论大同小异。

    所以若有人想自己学习591jj的架构时,可以推荐他们先看《DDDQ》及《PEAA》两本书。
        (虽然我当初设计其架构时,还没看《DDDQ》,《PEAA》也只看了部分,不过思想和他们的是相同的。)

    反思,service的存在,只是因为系统中需要这个“职责”。而OO有“单一职责”原则,我们也可以理解为:有职责,就有类/对象。所以这个职责,就是service的存在意义!引用《DDDQ》中的话:
    There are three characteristics of a Service:
    1. The operation performed by the Service refers to a domain concept which does not naturally belong to an Entity or Value Object.
    2. The operation performed refers to other objects in the domain.
    3. The operation is stateless.

    引用
    《DDDQ》:      《Domain Drive Design Quickly》
    《PEAA》:      《Patterns of Enterprise Application Architecture》

  • 相关阅读:
    C# Yield的使用
    vs code使用Markdown编辑使用插件
    理解IEnumerable和IQueryable
    LINQ使用CopyToDataTable
    Predicate委托
    Func委托
    Action委托
    Delegate委托
    TypeError: Cannot read property 'thisCompilation' of undefined
    由于找不到vcruntime140.dll,无法继续执行代码。
  • 原文地址:https://www.cnblogs.com/zgynhqf/p/1607707.html
Copyright © 2011-2022 走看看