zoukankan      html  css  js  c++  java
  • genericizing-code

    genericizing-code

    genericizing-code

    原文链接: http://ericasadun.com/2015/07/31/genericizing-code/

    Prefer functionality over implementation

     Focus your code on the connections between data creation and data consumption instead of the particulars of specific types.关注于数据创建和数据消费的关系

    It’s never too late to refactor

    Watch out for repeated code across different types

    One protocol does not rule them all

    Differentiate type constraints from parameter constraints

    Conform at the highest possible level

    Design with collections in mind

  • 相关阅读:
    产品 | What's产品经理
    产品 | 互联网+“加油”
    微信小程序 | 未来O2O电商的“阴谋”
    推荐书籍 | 产品必备书籍
    iOS | NSProxy
    iOS | 解决中文乱码
    HTML DOM addEventListener() 方法
    给每个对象加上新的属性
    vue.config.js基础配置
    SEO要点
  • 原文地址:https://www.cnblogs.com/xilifeng/p/4706280.html
Copyright © 2011-2022 走看看