Items related to Five Lines of Code: How and when to refactor

Five Lines of Code: How and when to refactor - Softcover

  • 4.00 out of 5 stars
    80 ratings by Goodreads
 
9781617298318: Five Lines of Code: How and when to refactor

Synopsis

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 by 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-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.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

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

Christian Clausen works as a Technical Agile Coach teaching teams how to properly refactor their code. Previously he worked as a software engineer on the Coccinelle semantic patching project, an automated refactoring tool. He has an MSc in computer science, and five years’ experience teaching software quality at a university level.

"About this title" may belong to another edition of this title.

Buy Used

Condition: Very Good
Connecting readers with great books...
View this item

US$ 3.75 shipping within U.S.A.

Destination, rates & speeds

Search results for Five Lines of Code: How and when to refactor

Stock Image

Clausen, Christian
Published by Manning, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
Used paperback

Seller: HPB-Ruby, Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

paperback. Condition: Very Good. Connecting readers with great books since 1972! Used books may not include companion materials, and may have some shelf wear or limited writing. We ship orders daily and Customer Service is our top priority! Seller Inventory # S_444135586

Contact seller

Buy Used

US$ 21.00
Convert currency
Shipping: US$ 3.75
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Clausen, Christian
Published by Manning, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
Used Softcover

Seller: Goodwill of Silicon Valley, SAN JOSE, CA, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

Condition: acceptable. Supports Goodwill of Silicon Valley job training programs. The cover and pages are in Acceptable condition! Any other included accessories are also in Acceptable condition showing use. Use can include some highlighting and writing, page and cover creases as well as other types visible wear such as cover tears discoloration, staining, marks, scuffs, etc. All pages intact. Seller Inventory # GWSVV.161729831X.A

Contact seller

Buy Used

US$ 24.99
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Clausen, Christian
Published by Simon and Schuster, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
New Softcover

Seller: INDOO, Avenel, NJ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 9781617298318

Contact seller

Buy New

US$ 44.90
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Seller Image

Clausen, Christian; Martin, Robert C. (FRW)
Published by Manning, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
New Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 42649845-n

Contact seller

Buy New

US$ 42.29
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Seller Image

Clausen, Christian; Martin, Robert C. (FRW)
Published by Manning, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
Used Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread book in perfect condition. Seller Inventory # 42649845

Contact seller

Buy Used

US$ 42.35
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Clausen, Christian
Published by Simon and Schuster, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
Used Softcover

Seller: INDOO, Avenel, NJ, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread copy in mint condition. Seller Inventory # SS9781617298318

Contact seller

Buy Used

US$ 45.00
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Clausen, Christian
Published by Manning, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
New paperback

Seller: upickbook, Daly City, CA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

paperback. Condition: New. Seller Inventory # mon0000248118

Contact seller

Buy New

US$ 41.49
Convert currency
Shipping: US$ 7.98
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Christian Clausen
Published by Pearson Education, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
New PAP

Seller: PBShop.store US, Wood Dale, IL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

PAP. Condition: New. New Book. Shipped from UK. Established seller since 2000. Seller Inventory # PB-9781617298318

Contact seller

Buy New

US$ 52.19
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 15 available

Add to basket

Stock Image

Clausen, Christian
Published by Manning, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
New Softcover

Seller: Best Price, Torrance, CA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. SUPER FAST SHIPPING. Seller Inventory # 9781617298318

Contact seller

Buy New

US$ 44.54
Convert currency
Shipping: US$ 8.98
Within U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Seller Image

Christian Clausen
Published by Manning Publications, US, 2021
ISBN 10: 161729831X ISBN 13: 9781617298318
New Paperback

Seller: Rarewaves USA, OSWEGO, IL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: New. 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." It's written for working developers, guiding you step by step through applying refactoring patterns to the codebase of a 2D puzzle game. 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. Thanks to this hands-on guide, you'll find yourself programming faster while still delivering high-quality code that your teammates will love to work with. about the technologyRefactoring 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 codeThe extracting method, introducing strategy pattern, and many other refactoring patternsModifying code safely, even when you don't understand itWriting stable code that enables change-by-additionProper compiler practicesWriting code that needs no commentsReal-world practices for great refactoring about the readerFor developers who know an object-oriented programming language. about the author Christian Clausen  works as a Technical Agile Coach teaching teams how to properly refactor their code. Previously he worked as a software engineer on the Coccinelle semantic patching project, an automated refactoring tool. He has an MSc in computer science, and five years' experience teaching software quality at a university level. Seller Inventory # LU-9781617298318

Contact seller

Buy New

US$ 56.08
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 10 available

Add to basket

There are 23 more copies of this book

View all search results for this book