zoukankan      html  css  js  c++  java
  • .NET设计规范笔记1

    1.Qualities of a Well-Designed Framework:

      1.1 Simple

        You can always add;you cannot ever remove.

      1.2 Expensive to Design

        Framework design should be explicit and distinct in the development process.

        It must be explicit because it needs to be appropriately planned,staffed,and executed.

        It must be distinct because it cannot just be a side effect of the implementation process.

        Mixing the responsibilities is a mistake and leads to designs that expose implementation details,which should not be visible to the end user of the framework.

        API design process has to be separate from the implementation process.

        API design process has to be incorporated in every part of the product cycle: 

          a)The planning phase:what are the APIS our customers need?

          b)The design process:what are the functionality trade-offs we are willing to make to get the right framework APIs?

          c)The development process:have we allocated time to try to use the framework to see how the end result feels?

          d)The beta process:have we allocated time for the costly API redesign?

          e)Maintenance:are we decreasing the design quality as we evolve the framework?

      1.3 Full of Trade-Offs

      1.4 Borrow from the Past

      1.5 Designed to Evolve

        It's better to move a complete feature to the next release than do it halfway in the current release.

      1.6 Integrated

      1.7 Consistent

      1.8 Testable

  • 相关阅读:
    基于数据库的号段模式生成分布式ID
    【idea】实现接口方法的快捷键
    java下载文件代码示例
    使用easyexcel生成文件,下载文件示例
    【easyexcel】读取excel文件
    【easyexcel】生成excel文件
    JAXB常用注解详解
    【SoapUI】测试webservice接口步骤
    idea 默认全局配置maven,避免每次新建项目都需要指定自己的maven目录
    JAVA实现MD5加密
  • 原文地址:https://www.cnblogs.com/bobliu/p/2184535.html
Copyright © 2011-2022 走看看