摘要: 第11章 重构API11.1 将查询函数和修改函数分离(Separate Query from Modifier) 读写分离 11.2 函数参数化(Parameterize Function) 11.3 移除标记参数(Remove Flag Argument) 又名:以明确函数取代参数 11.4 保 阅读全文
posted @ 2022-12-08 20:59 上海小墨子 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 第10章 简化条件逻辑10.1 分解条件表达式(Decompose Conditional) 10.2 合并条件表达式(Consolidate Conditional Expression) 10.3 以卫语句取代嵌套条件表达式(Replace Nested Conditional with Gua 阅读全文
posted @ 2022-12-08 20:24 上海小墨子 阅读(26) 评论(0) 推荐(0) 编辑