- 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.
- AngularJS入門與進階
- Visual C++串口通信開發入門與編程實踐
- 摩登創客:與智能手機和平板電腦共舞
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- Learning RxJava
- JIRA 7 Administration Cookbook(Second Edition)
- C語言程序設計基礎與實驗指導
- Magento 2 Theme Design(Second Edition)
- Rake Task Management Essentials
- 數據結構簡明教程(第2版)微課版
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- 精通Python設計模式(第2版)
- 大數據分析與應用實戰:統計機器學習之數據導向編程
- C++反匯編與逆向分析技術揭秘(第2版)
- Building Slack Bots