标签:
Prefer functionality over implementationIt’s never too late to refactorWatch out for repeated code across different typesOne protocol does not rule them allDifferentiate type constraints from parameter constraintsConform at the highest possible levelDesign with collections in mind
genericizing-code
原文链接: http://ericasadun.com/2015/07/31/genericizing-code/
?Focus your code on the connections between data creation and data consumption instead of the particulars of specific types.关注于数据创建和数据消费的关系
标签:
原文地址:http://www.cnblogs.com/xilifeng/p/4706280.html