Clean Code in Python, Second Edition
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 Python 基本语法、希望提升代码质量的初中级开发者
- 负责代码评审、需要统一团队编码规范的团队负责人
- 希望用设计模式、SOLID 原则改善遗留项目的软件工程师
- 正在学习架构与重构、需要实践参照的计算机专业高年级学生
Not a good fit for
- 完全没有 Python 基础、需要先学习语法入门的零基础读者
- 只想找现成代码模板、不愿理解设计取舍的读者
- 以数据分析或算法竞赛为主、不关注工程化维护的读者
Reading tips
- 先读第 1—2 章,把格式化工具、类型检查与命名词汇表落地到现有项目,再往后读。
- 第 4—6 章的概念较抽象,建议对照自己项目中的类与接口,边读边改。
- 第 8 章讲重构时,请选一个有小规模测试覆盖的模块动手,避免直接改核心代码。
- 各章末的参考资料值得跟进阅读,可作为本书之外延伸学习的索引。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Chapter 1 Introduction, Code Formatting, and Tools
- Chapter 2 Pythonic Code
- Chapter 3 General Characteristics of Good Code
- Chapter 4 The SOLID Principles
- Chapter 5 Improving Code with Decorators
- Chapter 6 Getting More Out of Objects with Descriptors
- Chapter 7 Generators, Iterators, and Asynchronous Programming
- Chapter 8 Unit Testing and Refactoring
- Chapter 9 Common Design Patterns
- Chapter 10 Clean Architecture
- Conclusion
FAQ
这本书和《Python代码整洁之道》是同一本书吗?
零基础可以读吗?
书中的代码基于哪个 Python 版本?
第 2 版和第 1 版主要差别在哪?
配套资源在哪里获取?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.