Clean Code in Python : Develop maintainable and efficient code, 2/e (Paperback)
暫譯: Python 清潔代碼:開發可維護且高效的代碼,第二版(平裝本)

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 中的乾淨程式碼》第二版更新了程式碼和內容,以符合 Python 3.9 的新功能,將為您提供克服這些障礙和成功管理項目所需的所有工具。

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

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

在這本乾淨程式碼書籍的結尾,您將熟練應用業界認可的程式碼實踐,設計出乾淨、可持續且可讀的實際 Python 程式碼。

您將學到什麼


  • 利用自動化工具設置高效的開發環境

  • 利用 Python 中的魔法方法編寫更好的程式碼,抽象複雜性並封裝細節

  • 使用 Python 的獨特功能(如描述符)創建高級物件導向設計

  • 通過使用物件導向設計的軟體工程原則創建強大的抽象,消除重複的程式碼

  • 使用裝飾器和描述符創建特定於 Python 的解決方案

  • 在單元測試的幫助下有效地重構程式碼

  • 以乾淨的程式碼庫為基石,建立穩固架構的基礎

本書適合誰

這本書將吸引希望學習 Python 編碼技術並在其舊系統上工作以節省成本和提高效率的團隊負責人、軟體架構師和高級軟體工程師。本書假設您對程式設計有深入的理解。

最後瀏覽商品 (20)