𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Clean Code in Python: Refactor your legacy codebase

✍ Scribed by Mariano Anaya


Publisher
Packt Publishing
Year
2018
Tongue
English
Leaves
328
Edition
1
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


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


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

✦ Subjects


Programming; Python; Design Patterns; Testing; Refactoring; Defensive Programming; Decorators; Descriptors; SOLID;ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅;Π―Π·Ρ‹ΠΊΠΈ программирования


πŸ“œ SIMILAR VOLUMES


Clean code in Python: refactor your lega
✍ Anaya, Mariano πŸ“‚ Library πŸ“… 2018 πŸ› Packt Publishing 🌐 English

Python is currently used in many different areas. 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, understand how to correct

Clean Code in C#: Refactor your legacy C
✍ Jason Alls πŸ“‚ Library πŸ“… 2020 πŸ› Packt Publishing 🌐 English

<p><b>Develop your programming skills by exploring essential topics such as code reviews, implementing TDD and BDD, and designing APIs to overcome code inefficiency, redundancy, and other problems arising from bad code</b></p> <h4>Key Features</h4> <ul><li>Write code that cleanly integrates with oth

Clean Code in C#: Refactor your legacy C
✍ Jason Alls πŸ“‚ Library πŸ“… 2020 πŸ› Packt Publishing 🌐 English

<p><b>Develop your programming skills by exploring essential topics such as code reviews, implementing TDD and BDD, and designing APIs to overcome code inefficiency, redundancy, and other problems arising from bad code</b></p> <h4>Key Features</h4> <ul><li>Write code that cleanly integrates with oth