Table of Contents

Five Lines of Code - How and when to refactor - Using TypeScript examples by Christian Clausen

Return to Refactoring, Legacy code, Refactoring bibliography, TypeScript bibliography, TypeScript, TypeScript DevOps, Web development bibliography, DevOps bibliography

Fair Use Source: B09H7RKPR4 (5LoC 2021)

“ (5LoC 2021)

Foreword by Robert C. Martin

Book Summary

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.

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

In Five Lines of Code you will learn:

Improving existing coderefactoring — is one of the most common programming 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 refactoring principles — you’ll learn when to refactor your legacy code or other code, what refactoring patterns to apply to what refactoring problem, and the code characteristics that indicate it’s time for a rework.

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

About the Technology

Every codebase includes code mistakes and code 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 refactoring book, you’ll learn a unique approach to refactoring that implements any method / function 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 Reader

For developers of all skill levels. Examples use easy-to-read Typescript, in the same style as Java and C#.

Table of Contents

PART 1 LEARN BY REFACTORING A COMPUTER GAME

PART 2 TAKING WHAT YOU HAVE LEARNED INTO THE REAL WORLD

Review

“Down to earth, focused, and right on point. It will challenge you without intimidating you and without insulting your intelligence.” — Robert C. Martin

“A delightful and fun introduction to one of the most overlooked parts of programming — refactoring.” — Charles Lam, EVN AG

“Gave me new insights on how to keep my code readable and my code maintainable. I highly recommend it.” — John Norcott, Webstaurantstore

“These refactoring techniques are simple but powerful, and the exercises makes it easy to learn them. They can be used in any language I know!” — Christian Hasselbalch Thoudahl, BEC Financial Technologies

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 yearsexperience teaching software quality at a university level.

Product Details

Research It More

Research:

Fair Use Sources

Fair Use Sources:


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.