Clean Code in Python: Refactor your legacy codebase (Paperback)
暫譯: Python 清潔代碼:重構你的遺留代碼庫 (平裝本)
Mariano Anaya
- 出版商: Packt Publishing
- 出版日期: 2018-08-30
- 定價: $1,600
- 售價: 6.0 折 $960
- 語言: 英文
- 頁數: 332
- 裝訂: Paperback
- ISBN: 1788835832
- ISBN-13: 9781788835831
-
相關分類:
系統開發、Python
-
相關翻譯:
簡潔的 Python|重構你的舊程式 (Clean Code in Python: Refactor your legacy codebase) (繁中版)
-
其他版本:
Clean Code in Python : Develop maintainable and efficient code, 2/e (Paperback)
買這商品的人也買了...
-
$680$666 -
$1,860$1,823 -
$480$408 -
$1,690$1,606 -
$680$537 -
$199編程珠璣, 2/e (修訂版) (Programming Pearls, 2/e)
-
$520$260 -
$500$425 -
$700$553 -
$1,088D3.js 4.x Data Visualization, 3/e (Paperback)
-
$390$257 -
$450$356 -
$1,088Python Machine Learning, 2/e (Paperback)
-
$1,790$1,701 -
$600$510 -
$1,830$1,739 -
$1,584Flask Web Development : Developing Web Applications with Python, 2/e (Paperback)
-
$1,715$1,629 -
$540$459 -
$520$411 -
$2,195Data Science from Scratch: First Principles with Python, 2/e (Paperback)
-
$780$616 -
$680$537 -
$1,064Clean Python: Elegant Coding in Python
-
$648$616
相關主題
商品描述
Getting the most out of Python to improve your codebase
Key Features
- Save maintenance costs by learning to fix your legacy codebase
- Learn the principles and techniques of refactoring
- Apply microservices to your legacy systems by implementing practical techniques
Book Description
Python is currently used in many different areas such as software construction, systems administration, and data processing.
In all of these areas, experienced professionals can find examples of inefficiency, problems, and other perils, as a result of bad code. After reading this book, readers will understand these problems, and more importantly, how to correct them.
The book begins by describing the basic elements of writing clean code and how it plays an important role in Python programming. You will learn about writing efficient and readable code using the Python standard library and best practices for software design. You will learn to implement the SOLID principles in Python and use decorators to improve your code. The book delves more deeply into object oriented programming in Python and shows you how to use objects with descriptors and generators. It will also show you the design principles of software testing and how to resolve software problems by implementing design patterns in your code. In the final chapter we break down a monolithic application to a microservice one, starting from the code as the basis for a solid platform.
By the end of the book, you will be proficient in applying industry approved coding practices to design clean, sustainable and readable Python code.
What you will learn
- Set up tools to effectively work in a development environment
- Explore how the magic methods of Python can help us write better code
- Examine the traits of Python to create advanced object-oriented design
- Understand removal of duplicated code using decorators and descriptors
- Effectively refactor code with the help of unit tests
- Learn to implement the SOLID principles in Python
Who this book is for
This book will appeal to team leads, software architects and senior software engineers who would like to work on their legacy systems to save cost and improve efficiency. A strong understanding of Programming is assumed.
Table of Contents
- Introduction, Code Formatting, and Tools
- Pythonic Code
- General Traits of Good Code
- The SOLID Principles
- Using Decorators to Improve our Code
- Getting more out of our objects with Descriptors
- Using Generators
- Unit Testing and Refactoring
- Common Design Patterns
- Clean Architecture
商品描述(中文翻譯)
**充分利用 Python 以改善您的程式碼庫**
#### 主要特點
- 透過學習修復您的舊有程式碼庫來節省維護成本
- 學習重構的原則和技術
- 透過實施實用技術將微服務應用於您的舊有系統
#### 書籍描述
Python 目前被廣泛應用於許多不同的領域,如軟體建設、系統管理和數據處理。
在這些領域中,經驗豐富的專業人士可以發現由於糟糕的程式碼而導致的低效率、問題和其他危險的例子。閱讀本書後,讀者將理解這些問題,更重要的是,如何修正它們。
本書首先描述了編寫乾淨程式碼的基本要素,以及它在 Python 程式設計中的重要角色。您將學習如何使用 Python 標準庫和軟體設計的最佳實踐來編寫高效且可讀的程式碼。您將學會在 Python 中實施 SOLID 原則,並使用裝飾器來改善您的程式碼。本書深入探討 Python 中的物件導向程式設計,並展示如何使用描述符和生成器來使用物件。它還將展示軟體測試的設計原則,以及如何通過在程式碼中實施設計模式來解決軟體問題。在最後一章中,我們將一個單體應用程式拆解為微服務,從程式碼開始作為穩固平台的基礎。
在本書結束時,您將能熟練應用業界認可的編碼實踐,設計乾淨、可持續且可讀的 Python 程式碼。
#### 您將學到什麼
- 設置工具以有效地在開發環境中工作
- 探索 Python 的魔法方法如何幫助我們編寫更好的程式碼
- 檢視 Python 的特性以創建高級物件導向設計
- 理解如何使用裝飾器和描述符移除重複的程式碼
- 在單元測試的幫助下有效重構程式碼
- 學習在 Python 中實施 SOLID 原則
#### 本書適合誰
本書將吸引希望改善舊有系統以節省成本和提高效率的團隊負責人、軟體架構師和資深軟體工程師。假設讀者對程式設計有良好的理解。
#### 目錄
1. 介紹、程式碼格式化和工具
2. Pythonic 程式碼
3. 良好程式碼的一般特徵
4. SOLID 原則
5. 使用裝飾器改善我們的程式碼
6. 使用描述符讓我們的物件發揮更大效用
7. 使用生成器
8. 單元測試與重構
9. 常見設計模式
10. 乾淨架構