Clean Code in Python : Develop maintainable and efficient code, 2/e (Paperback)

Anaya, Mariano

買這商品的人也買了...

商品描述

Improve your software engineering practices to tackle inefficiencies, errors, and other perils that emerge due to bad code

 

Key Features

  • Enhance your coding skills to increase efficiency as well as reflect the new features introduced in Python 3.9
  • Understand how to apply microservices to your legacy systems by implementing practical techniques
  • Learn to implement the refactoring techniques and SOLID principles in Python

 

Book Description

 

The Python language is immensely prevalent in numerous areas such as software construction, systems administration, and data processing. Experienced professionals in every field face the challenges of disorganization, poor readability, and testability due to unstructured code.

 

With updated code and revised content aligned to the new features of Python 3.9, this second edition of Clean code in Python will provide you with all the tools you need to overcome these obstacles and manage your projects successfully.

 

The book begins by describing the basic elements of writing clean code and how it plays a key role in Python programming. You will learn about writing efficient and readable code using the Python standard library and best practices for software design.

 

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 problems by implementing software 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 this clean code book, you will be proficient in applying industry-approved coding practices to design clean, sustainable and readable real-world Python code.

 

What You Will Learn

 

  • Set up a productive development environment by leveraging automatic tools
  • Leverage the magic methods in Python to write better code, abstracting complexity away and encapsulating details
  • Create advanced object-oriented designs using unique features of Python, such as descriptors
  • Eliminate duplicated code by creating powerful abstractions using software engineering principles of object-oriented design
  • Create Python-specific solutions using decorators and descriptors
  • Refactor code effectively with the help of unit tests
  • Build the foundations for solid architecture with a clean code base as its cornerstone

 

Who this book is for

This book will appeal to team leads, software architects, and senior software engineers who want to learn Python coding techniques and work on their legacy systems to save cost and improve efficiency. The book assumes that you have a strong understanding of programming.

商品描述(中文翻譯)

提升您的軟體工程實踐,以應對由於糟糕的程式碼而產生的效率低下、錯誤和其他危險。

主要特點:

- 提升編碼技巧,增加效率,並反映Python 3.9引入的新功能。
- 了解如何通過實施實用技術,將微服務應用於您的遺留系統。
- 學習在Python中實施重構技術和SOLID原則。

書籍描述:

Python語言在軟體構建、系統管理和數據處理等眾多領域中廣泛應用。各個領域的經驗豐富的專業人士都面臨著由於程式碼結構混亂、可讀性差和測試性差而帶來的挑戰。

通過更新的程式碼和與Python 3.9新功能相符的修訂內容,這本《Python清潔程式碼》第二版將為您提供克服這些障礙並成功管理項目所需的所有工具。

本書首先描述了編寫乾淨程式碼的基本要素以及它在Python編程中的重要作用。您將學習使用Python標準庫和軟體設計最佳實踐來編寫高效且可讀的程式碼。

本書更深入地探討了Python中的面向對象編程,並向您展示如何使用描述符和生成器使用對象。它還將向您展示軟體測試的設計原則以及如何通過在程式碼中實施軟體設計模式來解決問題。在最後一章中,我們將從程式碼作為堅實平台的基礎,將一個龐大的應用程序拆分為微服務。

通過閱讀本書,您將能夠熟練應用行業認可的編碼實踐,設計乾淨、可持續且可讀的真實世界Python程式碼。

學到什麼:

- 通過利用自動工具建立高效的開發環境。
- 利用Python的魔術方法編寫更好的程式碼,抽象出複雜性並封裝細節。
- 使用Python的獨特功能(如描述符)創建高級面向對象的設計。
- 通過使用面向對象設計的軟體工程原則,創建強大的抽象,消除重複的程式碼。
- 使用裝飾器和描述符創建特定於Python的解決方案。
- 通過單元測試有效地重構程式碼。
- 以乾淨的程式碼為基礎,建立堅實架構的基礎。

適合閱讀對象:

本書適合團隊領導、軟體架構師和高級軟體工程師,他們希望學習Python編碼技巧並在遺留系統上工作,以節省成本並提高效率。本書假設您對編程有很強的理解能力。