Book Description
Learn software engineering and coding best practices to write Python code right and error free. In this book you’ll see how to properly debug, organize, test, and maintain your code, all of which leads to better, more efficient coding.
Software engineering is difficult. Programs of any substantial length are inherently prone to errors of all kinds. The development cycle is full of traps unknown to the apprentice developer. Yet, in Python textbooks little attention is paid to this aspect of getting your code to run. At most, there is a chapter on debugging or unit testing in your average basic Python book. However, the proportion of time spent on getting your code to run is much higher in the real world. Pro Python Best Practices aims to solve this problem.
What You’ll Learn
- Learn common debugging techniques that help you find and eliminate errors
- Gain techniques to detect bugs more easily
- Learn techniques to keep your project under control
Who This Book Is For
Experienced Python coders from web development, big data, and more.
Table of Contents
Chapter 1: Introduction
Part I: Debugging
Chapter 2: Exceptions in Python
Chapter 3: Semantic Errors in Python
Chapter 4: Debugging with the Scientific Method
Chapter 5: Debugging with print Statements
Chapter 6: Debugging with Introspection Functions
Chapter 7: Using an Interactive Debugger
Part II: Automated Testing
Chapter 8: Writing Automated Tests
Chapter 9: Organizing Test Data
Chapter 10: Writing a Test Suite
Chapter 11: Testing Best Practices
Part III: Maintenance
Chapter 12: Version Control
Chapter 13: Setting Up a Python Project
Chapter 14: Cleaning Up Code
Chapter 15: Decomposing Programming Tasks
Chapter 16: Static Typing in Python
Chapter 17: Documentation
中文:
书名:Pro Python Best Practices: Debugging, Testing and Maintenance
学习软件工程和编码的最佳实践,以正确和无错误地编写Python代码。在本书中,您将了解如何正确调试、组织、测试和维护代码,所有这些都会带来更好、更高效的编码。
软件工程是困难的。任何相当长的程序都很容易出现各种错误。开发周期充满了见习开发人员所不知道的陷阱。然而,在Python教科书中,很少关注让代码运行的这一方面。在一般的基本Python书籍中,最多只有一章是关于调试或单元测试的。然而,在现实世界中,运行代码所花费的时间比例要高得多。 Pro Python Best Practices 旨在解决这一问题。
What You’ll Learn
- 了解帮助您查找和消除错误的常见调试技术
- 更轻松地检测错误的Gain技术
- 学习控制您的项目的技术
Who This Book Is For
来自Web开发、大数据等领域的经验丰富的Python程序员。
Table of Contents
Chapter 1: Introduction
Part I: Debugging
第2章:Python中的异常
第3章:Python中的语义错误
第四章:用科学的方法调试
第5章:使用打印语句进行调试
第6章:使用自省函数进行调试
Chapter 7: Using an Interactive Debugger
Part II: Automated Testing
第8章:编写自动化测试
第9章:组织测试数据
第10章:编写测试套件
第11章:测试最佳实践
Part III: Maintenance
Chapter 12: Version Control
第13章:设置一个Python项目
第14章:清理代码
第15章:分解编程任务
第16章:Python中的静态类型
Chapter 17: Documentation
评论前必须登录!
注册