会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Xkfx's Blog
博客园
首页
新随笔
订阅
管理
随笔分类 -
重构与设计模式
Refactoring #002 Inline Method
摘要:Example / Note 为什么/何时要 Inline Method?同样是考虑代码的“代码复用”和“可读性”: Inline Method 的手段:和 Extract Method 恰好相反
阅读全文
posted @
2018-01-16 19:42
xkfx
阅读(165)
评论(0)
推荐(0)
Refactoring #001 Extract Method
摘要:Example / Note 为什么要 Extract Method?主要体现在“可读性”和“代码复用”上: Extract Method 的手段:
阅读全文
posted @
2018-01-14 20:44
xkfx
阅读(166)
评论(0)
推荐(0)
公告