Clean Code in Python: Refactor your legacy code base

0
(0)

Clean Code in Python: Refactor your legacy code base
 

  • Author:Mariano Anaya
  • Length: 332 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2018-08-29
  • ISBN-10: 1788835832
  • ISBN-13: 9781788835831
  • Sales Rank: #534439 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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

    Chapter 1 Introduction, Code Formatting, and Tools
    Chapter 2 Pythonic Code
    Chapter 3 General Traits of Good Code
    Chapter 4 The SOLID Principles
    Chapter 5 Using Decorators to Improve our Code
    Chapter 6 Getting more out of our objects with Descriptors
    Chapter 7 Using Generators
    Chapter 8 Unit Testing and Refactoring
    Chapter 9 Common Design Patterns
    Chapter 10 Clean Architecture

    中文:

    书名:Clean Code in Python: Refactor your legacy code base

    充分利用Python来改进您的代码库

    主要特点

    • 通过学习修复遗留代码库来节省维护成本
    • 学习重构的原理和技术
    • 通过实现实用技术将微服务应用于遗留系统

    图书描述

    目前,在许多不同的领域,如软件构建、系统管理和数据处理中都使用了Python。

    在所有这些领域,经验丰富的专业人员都可以找到由于错误代码而导致的低效、问题和其他危险的例子。读完这本书,读者会明白这些问题,更重要的是,如何纠正它们。

    这本书首先描述了编写干净代码的基本元素,以及它如何在Python编程中扮演重要角色。您将学习如何使用软件设计的Python标准库和最佳实践编写高效且可读的代码。您将学习如何在Python中实现可靠的原则,并使用修饰器来改进您的代码。这本书更深入地研究了Python中的面向对象编程,并向您展示了如何使用带有描述符和生成器的对象。它还将向您展示软件测试的设计原则,以及如何通过在代码中实现设计模式来解决软件问题。在最后一章中,我们将从作为坚实平台基础的代码开始,将单片应用程序分解为微服务应用程序。

    到本书结束时,您将熟练地应用业界认可的编码实践来设计干净、可持续和可读的Python代码。

    你将学到什么

    • 设置工具以在开发环境中有效工作
    • 探索Python的神奇方法如何帮助我们编写更好的代码
    • 研究Python的特点以创建高级的面向对象设计
    • 了解使用修饰符和描述符删除重复代码
    • 在单元测试的帮助下有效地重构代码
    • 学习在Python语言中实现可靠的原则

    这本书是为谁而写的

    这本书将吸引团队领导、软件架构师和高级软件工程师,他们希望在他们的遗留系统上工作,以节省成本和提高效率。假定您对编程有很强的理解。

    目录表

    第1章简介、代码格式化和工具
    Chapter 2 Pythonic Code
    第三章良码的一般特征
    第四章扎实的原则
    第5章使用修饰器改进代码
    第6章使用描述符更好地利用对象
    第七章使用发电机
    Chapter 8 Unit Testing and Refactoring
    第9章常见设计模式
    第十章干净的架构

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册