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

  • 相关阅读:
    面向对象(接口 ,多态)
    面向对象(继承,重写,this,super,抽象类)
    IO(字符流 字符缓冲流)
    ArrayList集合
    字符串常用API
    面向对象(类,封装,this,构造方法)
    不同类型问题代码训练
    java中的方法
    04慕课网《进击Node.js基础(一)》HTTP讲解
    《JavaScript设计模式与开发实践》——第3章 闭包和高阶函数
  • 原文地址:https://www.cnblogs.com/xilifeng/p/4706280.html
Copyright © 2011-2022 走看看