• 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

  • 相关阅读:
    推理思维
    模糊数学
    Android 加法程序
    线程特点
    单例模式的优缺点
    lua 字符串过滤,特殊字符过滤
    cocos2dx
    cocos2dx之控制台输出
    C++基础(using)
    生活常识
  • 原文地址:https://www.cnblogs.com/xilifeng/p/4706280.html
Copyright © 2020-2023  润新知