舉報

會員
Refactoring TypeScript
Refactoringimprovesyourcodewithoutchangingitsbehavior.Withrefactoring,thebestapproachistoapplysmalltargetedchangestoacodebase.Insteadofdoingahugesweepingchangetoyourcode,refactoringisbetterasalong-termandcontinuousenterprise.RefactoringTypeScriptexplainshowtospotbugsandremovethemfromyourcode.You’llstartbyseeinghowwordyconditionals,methods,andnullchecksmakecodeunhealthyandunstable.Whetheritisidentifyingmessynestedconditionalsorremovingunnecessarymethods,thisbookwillshowvarioustechniquestoavoidthesepitfallsandwritecodethatiseasiertounderstand,maintain,andtest.Bytheendofthebook,you’llhavelearnedsomeofthemaincausesofunhealthycode,tipstoidentifythemandtechniquestoaddressthem.
目錄(46章)
倒序
- 封面
- 版權頁
- Preface
- About
- About the Book
- Chapter 1 Introduction
- About TypeScript
- What Is Refactoring?
- Why Refactor at All?
- When Should I Refactor?
- Chapter 2 Null Checks Everywhere!
- Identification
- Null Object Pattern
- Special Case Pattern
- Chapter 3 Wordy Conditionals
- Identification
- Combining Conditionals
- Extracting Methods from Conditionals
- Extracting Conditional Logic to Explicit Classes
- Pipe Classes
- Chapter 4 Nested Conditionals
- Identification
- Guard Clauses
- Gate Classes
- Chapter 5 Primitive Overuse
- Identification
- Value Objects
- Deceptive Booleans
- Chapter 6 Lengthy Method Signatures
- Identification
- Creating a Reusable Private Method
- Extracting Data Objects
- Chapter 7 Methods That Never End
- Identification
- Give It a Name
- Being Strategic
- Chapter 8 Dumping Grounds
- Identification
- One of These Things Is Not Like The Others
- Speak or Listen
- Chapter 9 Messy Object Creation
- Identification
- Factory Functions
- Combining Refactoring Techniques
- Chapter 10 Conclusion
- This Is Just The Beginning! 更新時間:2021-06-11 13:05:56
推薦閱讀
- Swift 3 New Features
- 精通Scrapy網絡爬蟲
- C程序設計案例教程
- 零基礎入門學習Python
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- 細說Python編程:從入門到科學計算
- Kivy Cookbook
- R Data Science Essentials
- OpenCV 3 Blueprints
- Node.js從入門到精通
- C#面向對象程序設計(第2版)
- WCF全面解析
- Tkinter GUI Programming by Example
- Web程序設計與架構
- Kotlin入門與實戰
- Java語言GUI程序設計
- PostGIS Cookbook
- 深入理解Android網絡編程:技術詳解與最佳實踐
- GNOME 3 Application Development Beginner's Guide
- Learning Angular for .NET Developers
- Three.js開發指南
- Web安全之強化學習與GAN
- Zabbix Cookbook
- 編程競賽寶典:C++語言和算法入門
- Python高級編程(第2版)
- 大模型應用開發極簡入門:基于GPT-4和ChatGPT
- Learning Xamarin Studio
- HTML5 Video How-to
- Lumion 3D Best Practices
- Implementing VMware vCenter Server