Five Lines of Code: How and when to refactor

Five Lines of Code: How and when to refactor
Author: Christian Clausen
Publisher ‏ : ‎ Manning (October 26, 2021)
Language ‏ : ‎ English
Paperback ‏ : ‎ 336 pages
ISBN-10 ‏ : ‎ 161729831X
ISBN-13 ‏ : ‎ 9781617298318

Book Description
Five Lines of Code teaches refactoring that’s focused on concrete rules and getting any method down to five lines or less! There’s no jargon or tricky automated-testing skills required, just easy guidelines and patterns illustrated Author: detailed code samples.

In Five Lines of Code you will learn:

The signs of bad code
Improving code safely, even when you don’t understand it
Balancing optimization and code generality
Proper compiler practices
The Extract method, Introducing Strategy pattern, and many other refactoring patterns
Writing stable code that enables change-Author:-addition
Writing code that needs no comments
Real-world practices for great refactoring
Improving existing code—refactoring—is one of the most common tasks you’ll face as a programmer. Five Lines of Code teaches you clear and actionable refactoring rules that you can apply without relying on intuitive judgements such as “code smells.” Following the author’s expert perspective—that refactoring and code smells can be learned Author: following a concrete set of principles—you’ll learn when to refactor your code, what patterns to apply to what problem, and the code characteristics that indicate it’s time for a rework.

Every codebase includes mistakes and inefficiencies that you need to find and fix. Refactor the right way, and your code becomes elegant, easy to read, and easy to maintain. In this book, you’ll learn a unique approach to refactoring that implements any method in five lines or fewer. You’ll also discover a secret most senior devs know: sometimes it’s quicker to hammer out code and fix it later!

Five Lines of Code is a fresh look at refactoring for developers of all skill levels. In it, you’ll master author Christian Clausen’s innovative approach, learning concrete rules to get any method down to five lines—or less! You’ll learn when to refactor, specific refactoring patterns that apply to most common problems, and characteristics of code that should be deleted altogether.

What’s inside

The signs of bad code
Improving code safely, even when you don’t understand it
Balancing optimization and code generality
Proper compiler practices


下载地址:

Five Lines of Code How and when to refactor 9781617298318.pdf (访问密码:142857)

下载地址阅读全文需1积分,请先!或 捐 助 获取权限!
赞(0) 觉得文章有用就打赏一下
未经允许不得转载:finelybook » Five Lines of Code: How and when to refactor

觉得文章有用就打赏一下

支付宝扫一扫打赏

微信扫一扫打赏