[notes] some code tips
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/
Prefer functionality over implementation
Focus your code on the connections between data creation and data consumption instead of the particulars of specific types.关注于数据创建和数据消费的关系