- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 158字
- 2021-06-24 18:31:51
Refactoring
While all the previous steps are mandatory, this one is optional. Even though refactoring is rarely done at the end of each cycle, sooner or later it will be desired, if not mandatory. Not every implementation of a test requires refactoring. There is no rule that tells you when to refactor and when not to. The best time is as soon as one gets a feeling that the code can be rewritten in a better or more optimum way.
What constitutes a candidate for refactoring? This is a hard question to answer since it can have many answers—it's hard to understand code, the illogical location of a piece of code, duplication, names that do not clearly state a purpose, long methods, classes that do too many things, and so on. The list can go on and on. No matter what the reasons are, the most important rule is that refactoring cannot change any existing functionality.
- 深入理解Android(卷I)
- Vue.js設計與實現
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- Mastering Ubuntu Server
- Windows Forensics Cookbook
- Python機器學習算法: 原理、實現與案例
- Test-Driven Machine Learning
- Clojure for Machine Learning
- C編程技巧:117個問題解決方案示例
- QlikView Unlocked
- SEO教程:搜索引擎優化入門與進階(第3版)
- 量子計算機編程:從入門到實踐
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL
- Android 5從入門到精通