代码重构
0 人感兴趣 · 16 次引用
- 最新
- 推荐


【译】JavaScript 代码整洁之道 - 重构篇
在本文中,将介绍如何对代码一步一步地实现重构,并且以我在编程基础课程中已经实现的代码为例,来展示如何在实践中应用这些技巧。

修炼码德系列:简化条件表达式
与面向过程编程相比,面向对象编程的条件表达式相对来说已经比少了,因为很多的条件行为都可以被多态的机制处理掉;但是有时候我们还是会遇到一些小伙伴写出来的条件表达式和面向过程编程没什么差别,比如我遇到过这段代码:



【总结】架构师的基本能力之 - 代码重构
重构这件事情做好名利双收,做不好人社倒塌,甚至跑路比比皆是,是考验架构师的核心能力之一,但是为啥还需要做呢?重构对业务发展能带来很好的支持,达到降本增效(个人在企业做事的终极目标)目的。
