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

  • 相关阅读:
    虚拟机的三种联网模式(桥接模式、NAT 模式、仅主机模式)
    Vue 分页器 Pagination 实现点击分页器,平滑到对应的dom组件,而不是直接切换对应的组件
    img图片的处理技巧
    Vue中在DOM组件上动态绑定数据
    vue3.0中使用postcss-pxtorem
    vue中实现点击div有样式去除样式 无样式添加样式
    网易云音乐API,的调用方法 ,vue项目中(在本地使用)
    我的mixin.scss文件
    kendo-ui 几个有用的数据操作
    开发中常见的common.js--1
  • 原文地址:https://www.cnblogs.com/xilifeng/p/4706280.html
Copyright © 2011-2022 走看看