
Five Lines of Code: How and When To Refactor, 1st edition
Published by Manning Publications (December 6, 2021) © 2022
- Christian Clausen
Details
- A print text
- Free shipping
- Also available for purchase as an ebook from all major ebook resellers, including InformIT.com
Title overview
about the technology
Refactoring is a fact of life. All code is imperfect, and refactoring is a systematic process you can use to improve the quality of your codebase. Whatever your architecture, choice of OO language, or skill as a programmer, the continuous design improvements of refactoring make your code simpler, more readable, and less prone to bugs. You’ll be amazed at the productivity boost of adding refactoring to your code hygiene routine—it’s quicker to hammer out bad code and then improve it than spending hours writing good code in the first place!about the book
Five Lines of Code teaches working developers the shortcuts to quality code. You’ll follow author Christian Clausen’s unique approach to teaching refactoring that’s focused on concrete rules, and getting any method down to five lines or less to implement! There’s no jargon or tricky automated-testing skills required, just easy guidelines and patterns illustrated by detailed code samples. Chapter by chapter you’ll put techniques into action by refactoring a complete 2D puzzle game. Before you know it, you’ll be making serious and tangible improvements to your codebase.what's inside
- The symptoms of bad code
- The extracting method, introducing strategy pattern, and many other refactoring patterns
- Modifying code safely, even when you don’t understand it
- Writing stable code that enables change-by-addition
- Proper compiler practices
- Writing code that needs no comments
- Real-world practices for great refactoring