[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.关注于数据创建和数据消费的关系
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步