Five Lines of Code: How and when to refactor
Language: English
Published by Manning, 2021
- Softcover
- New

Seller: Brook Bookstore On Demand, Napoli, NA, ItalyBrook Bookstore On Demand
AbeBooks seller since October 11, 2022
Condition: New
US$ 70.81
Quantity: 4 available
Add to basketSeller Inventory # RGB03RVECY
- Title
- Five Lines of Code: How and when to refactor
- Author
- Clausen, Christian
- Publisher
- Manning
- Publication year
- 2021
- Condition
- new
- Binding
- Soft cover
- Language
- English
- ISBN 10
- 161729831X
- ISBN 13
- 9781617298318
- Item weight
- 0.7 kilograms
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-by-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 by 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.
Foreword by Robert C. Martin.
About the technology
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!
About the book
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
About the reader
For developers of all skill levels. Examples use easy-to-read Typescript, in the same style as Java and C#.
About the author
Christian Clausen works as a Technical Agile Coach, teaching teams how to refactor code.
Table of Contents
1 Refactoring refactoring
2 Looking under the hood of refactoring
PART 1 LEARN BY REFACTORING A COMPUTER GAME
3 Shatter long function
4 Make type codes work
5 Fuse similar code together
6 Defend the data
PART 2 TAKING WHAT YOU HAVE LEARNED INTO THE REAL WORLD
7 Collaborate with the compiler
8 Stay away from comments
9 Love deleting code
10 Never be afraid to add code
11 Follow the structure in the code
12 Avoid optimizations and generality
13 Make bad code look bad
14 Wrapping up
"Synopsis" may belong to another edition of this title.
About the Author
"About the title" may belong to another edition of this title.
Brook Bookstore On Demand
Napoli, NA, Italy
AbeBooks seller since October 11, 2022
Shipping rates from Italy to U.S.A.
| Item | 25 to 40 business days | 60 to 60 business days |
|---|---|---|
| First item | US$ 7.80 | US$ 586.05 |
Payment methods
Store description
Account dedicated to Print on Demand titles. Brook Bookstore offers a wide selection of books with a continuously updated catalog and fast shipments all over the world. We hold distribution rights with all of the publishers we promote and are in continuous search of new interesting titles to propose to our customers. We are part of Brandon Group SRL (an Italian company) and all of the orders are shipped from Europe. Depending on availability orders will be picked from our different warehouses. CONTACT US If you have any questions please do not hesitate to contact us sending a message to our store. We have a well prepared customer service team who will be happy to assist you. Our working hours are from Monday to Friday from 9:30 to 18:30 (CET, UTC +1) so messages received during the weekends might be responded with a slight delay but we guarantee you will get back to you as soon as possible. RETURNS If you want to return your order, please submit your request through Abebooks platform. Returns requests are managed case by case by our team and always in line with Abebooks policies: AbeBooks’ Return Policy guarantees that you can return any book for a refund within 30 days, when the return is due to an error on the bookseller’s part. When the motive of the return is not due to an error of the seller it is up to Brook Bookstore to accept the return or else after studying the case. CANCELLATION You can send a cancellation request to our customer service team while the package has not yet been shipped. After that we cannot ensure we can retrieve the parcel but we suggest you to get in touch with us in order to verify the case. INVOICE You can request the invoice to be issued together with the shipment of the order or, at the latest, in the same month of the shipment. …
Specialty
Print on DemandSeller's business information
Brandon Group S.R.L.
Via Vannella Gaetani 27, Brandon Group
Napoli, NA Italy 80121
Terms of sale
Account dedicated to Print on Demand titles.
CANCELLATION
You can send a cancellation request from the order page while the package has not yet been shipped. After that we cannot ensure we can retrieve the parcel but we suggest you to get in touch with us in order to verify the case.
INVOICE
You can request the invoice to be issued together with the shipment of the order or, at the latest, in the same month of the shipment.
RETURNS
If you want to return your order, please contact us for authorization or place a request on the order page. Orders returned without authorization may not be credited.
If your order presents damages or any other issue on arrival we must be advised of this within 14 days of delivery in order to find the most suitable solution for you.
Returns for Brook Bookstore (Brandon Group SRL) are only accepted in the following addresses:
Return address in the United Kingdom:
MHI
(c/o BR Books)
82 Feeder Road
Bristol
BS2 0TQ
UK
Return address in Italy (for all EU countries):
Brandon Group c/o TWS
Via Trento, 9
20067 Tribiano (MI) – Italy
Return address in Japan:
Brandon Group JP
c/o Windows, Inc.
Mr. Jiro Asami
2-12-7-504 Oshiage, Sumida-ku
Tokyo 131-0045 Japan
Return address in the USA:
TruLogic- EZI - Brook Bookstore
5401 NW 72nd ave
MIami FL 33166-4941
Return address in Australia:
Active - Ezi - - Brook Bookstore
2/2-4 Federation Way,
Moorabbin Airport
Mentone, 3194
Victoria
AUSTRALIA
Return address in Canada:
No3rd - Ezi - - Brook Bookstore
520 Ave Lepine
Dorval QC H9P 2V6
CANADA
Return address in Mexico:
Chronos - EZI - Brook Bookstore
Calle Duba 112
Parque industrial Logistik II
79526 Villa de Reyes
San Luis Potosi
*For returns from other areas please contact us in order to provide further assistance.