Автор: Maximiliano Contieri
Издательство: O’Reilly Media, Inc.
Год: 2023
Страниц: 553
Язык: английский
Формат: pdf, mobi, epub (true)
Размер: 15.3 MB
Often, software engineers and architects work with large, complex code bases that they need to scale and maintain. With this cookbook, author Maximiliano Contieri takes you beyond the concept of clean code by showing you how to identify improvement opportunities and their impact on production code. When it comes to reliability and system evolution, these techniques provide benefits that pay off over time.
Using real life examples in jаvascript, PHP, Java, Python, and many other programming languages, this cookbook provides proven recipes to help you scale and maintain large systems. Every section covers fundamental concepts including readability, coupling, testability, and extensibility, as well as code smells—symptoms of a problem that requires special attention—and the recipes to address them.
As you proceed through this book, refactoring recipes and the variety of code smells increase in complexity.
This book consists of 25 chapters. Every chapter starts with some principles and fundamentals showing the benefits of clean code, its consequences, and its drawbacks when applied incorrectly. The first chapter talks about the single guiding rule for clean code: map real-world entities 1:1 with your design. This rule serves as a foundation from which all other principles can be derived.
Within each chapter, you will find several recipes organized thematically with tools and advice to change your code. The purpose of every recipe is to help you make positive changes and improvements in your current situation. Along with the recipes and examples, you will also be introduced to various software design principles, heuristics, and rules. Recipes have code samples in several programming languages since clean code is not a property of just one of them. Many refactoring books rely on a single language and authors update newer editions using the latest trending programming language. This book is programming language agnostic, and most of the recipes apply to many languages (except when noted). You should read the code as pseudocode even though most runs as is. When I need to decide between readability and performance I always choose readability.
You will:
• Understand the benefits of clean code and learn how to detect code smells
• Learn refactoring techniques step by step
• Gain illustrative code examples in several modern programming languages
• Get a comprehensive catalog of common code smells, their impacts, and possible solutions
• Use code that's straight to the point, favoring readability and learning
Who This Book Is For:
This book helps you identify common problems in a codebase and highlights the consequences of these problems, and ultimately helps you avoid them with easy-to-follow recipes. It is a valuable resource that can greatly aid programmers, code reviewers, architects, and students in improving their code skills and existing systems.
Скачать Clean Code Cookbook: Recipes to Improve the Design and Quality of your Code (Final)