
Five Lines of Code
How and When to Refactor
Failed to add items
Add to Cart failed.
Add to Wish List failed.
Remove from wishlist failed.
Adding to library failed
Follow podcast failed
Unfollow podcast failed
$0.99/mo for the first 3 months

Buy for $19.95
No default payment method selected.
We are sorry. We are not allowed to sell this product with the selected payment method
-
Narrated by:
-
Mark Thomas
About this listen
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.
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 Audience
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.
PLEASE NOTE: When you purchase this title, the accompanying PDF will be available in your Audible Library along with the audio.
©2021 Manning Publications (P)2021 Manning PublicationsListeners also enjoyed...
-
Modern Software Engineering
- Doing What Works to Build Better Software Faster
- By: David Farley
- Narrated by: Amy Gordon
- Length: 9 hrs and 37 mins
- Unabridged
-
Overall
-
Performance
-
Story
In Modern Software Engineering, continuous delivery pioneer David Farley helps software professionals think about their work more effectively, manage it more successfully, and genuinely improve the quality of their applications, their lives, and the lives of their colleagues.
-
-
Could have been a 1-page bulleted list
- By Elle7se on 12-30-22
By: David Farley
-
Good Code, Bad Code
- Think Like a Software Engineer
- By: Tom Long
- Narrated by: Julie Brierley
- Length: 10 hrs and 34 mins
- Unabridged
-
Overall
-
Performance
-
Story
Practical techniques for writing code that is robust, reliable, and easy for team members to understand and adapt. In Good Code, Bad Code you’ll learn how to: Think about code like an effective software engineer, write functions that read like well-structured sentences, ensure code is reliable and bug free, effectively unit test code, identify code that can cause problems and improve it, write code that is reusable and adaptable to new requirements, improve your medium and long-term productivity, and save yourself and your team time.
-
-
Good Audiobook, Bad Audiobook
- By Ben on 12-06-21
By: Tom Long
-
Advanced Algorithms and Data Structures
- By: Marcello La Rocca
- Narrated by: Julie Brierley
- Length: 23 hrs and 32 mins
- Unabridged
-
Overall
-
Performance
-
Story
As a software engineer, you’ll encounter countless programming challenges that initially seem confusing, difficult, or even impossible. Don’t despair! Many of these “new” problems already have well-established solutions. Advanced Algorithms and Data Structures teaches you powerful approaches to a wide range of tricky coding challenges that you can adapt and apply to your own applications. Providing a balanced blend of classic, advanced, and new algorithms, this practical guide upgrades your programming toolbox with new perspectives and hands-on techniques.
-
-
Wonderful audio textbook!
- By Howard_a on 11-02-21
-
The Pragmatic Programmer: 20th Anniversary Edition, 2nd Edition
- Your Journey to Mastery
- By: David Thomas, Andrew Hunt
- Narrated by: Anna Katarina
- Length: 9 hrs and 55 mins
- Unabridged
-
Overall
-
Performance
-
Story
Dave Thomas and Andy Hunt wrote the first edition of this influential book in 1999 to help their clients create better software and rediscover the joy of coding. These lessons have helped a generation of programmers examine the very essence of software development. Now, 20 years later, this new edition re-examines what it means to be a modern programmer. Topics range from personal responsibility and career development to architectural techniques for keeping your code flexible and easy to adapt and reuse.
-
-
An excellent and entertaining technical book
- By Amazon Customer on 01-21-20
By: David Thomas, and others
-
Software Development Pearls
- Lessons from Fifty Years of Software Experience
- By: Karl Wiegers
- Narrated by: Amy Gordon
- Length: 10 hrs and 49 mins
- Unabridged
-
Overall
-
Performance
-
Story
You can't afford to make every mistake yourself! Software Development Pearls helps you improve faster and bypass much of the pain by learning from others who have already climbed the learning curve. Drawing on 25-plus years of helping software teams succeed, Karl Wiegers has crystallized 60 concise, practical lessons for all your projects, regardless of your role, industry, technology, or methodology.
-
-
Great book.I loved it.I got to listen to it again
- By Jack W. Ferry on 06-11-24
By: Karl Wiegers
-
The Clean Coder
- A Code of Conduct for Professional Programmers
- By: Robert C. Martin
- Narrated by: Theodore O'Brien
- Length: 6 hrs and 12 mins
- Unabridged
-
Overall
-
Performance
-
Story
Great software is something to marvel at: powerful, elegant, functional, a pleasure to work with as both a developer and as a user. Great software isn’t written by machines. It is written by professionals with an unshakable commitment to craftsmanship. The Clean Coder will help you become one of them - and earn the pride and fulfillment that they alone possess.
-
-
The best one
- By Amazon Customer on 01-10-22
By: Robert C. Martin
-
Modern Software Engineering
- Doing What Works to Build Better Software Faster
- By: David Farley
- Narrated by: Amy Gordon
- Length: 9 hrs and 37 mins
- Unabridged
-
Overall
-
Performance
-
Story
In Modern Software Engineering, continuous delivery pioneer David Farley helps software professionals think about their work more effectively, manage it more successfully, and genuinely improve the quality of their applications, their lives, and the lives of their colleagues.
-
-
Could have been a 1-page bulleted list
- By Elle7se on 12-30-22
By: David Farley
-
Good Code, Bad Code
- Think Like a Software Engineer
- By: Tom Long
- Narrated by: Julie Brierley
- Length: 10 hrs and 34 mins
- Unabridged
-
Overall
-
Performance
-
Story
Practical techniques for writing code that is robust, reliable, and easy for team members to understand and adapt. In Good Code, Bad Code you’ll learn how to: Think about code like an effective software engineer, write functions that read like well-structured sentences, ensure code is reliable and bug free, effectively unit test code, identify code that can cause problems and improve it, write code that is reusable and adaptable to new requirements, improve your medium and long-term productivity, and save yourself and your team time.
-
-
Good Audiobook, Bad Audiobook
- By Ben on 12-06-21
By: Tom Long
-
Advanced Algorithms and Data Structures
- By: Marcello La Rocca
- Narrated by: Julie Brierley
- Length: 23 hrs and 32 mins
- Unabridged
-
Overall
-
Performance
-
Story
As a software engineer, you’ll encounter countless programming challenges that initially seem confusing, difficult, or even impossible. Don’t despair! Many of these “new” problems already have well-established solutions. Advanced Algorithms and Data Structures teaches you powerful approaches to a wide range of tricky coding challenges that you can adapt and apply to your own applications. Providing a balanced blend of classic, advanced, and new algorithms, this practical guide upgrades your programming toolbox with new perspectives and hands-on techniques.
-
-
Wonderful audio textbook!
- By Howard_a on 11-02-21
-
The Pragmatic Programmer: 20th Anniversary Edition, 2nd Edition
- Your Journey to Mastery
- By: David Thomas, Andrew Hunt
- Narrated by: Anna Katarina
- Length: 9 hrs and 55 mins
- Unabridged
-
Overall
-
Performance
-
Story
Dave Thomas and Andy Hunt wrote the first edition of this influential book in 1999 to help their clients create better software and rediscover the joy of coding. These lessons have helped a generation of programmers examine the very essence of software development. Now, 20 years later, this new edition re-examines what it means to be a modern programmer. Topics range from personal responsibility and career development to architectural techniques for keeping your code flexible and easy to adapt and reuse.
-
-
An excellent and entertaining technical book
- By Amazon Customer on 01-21-20
By: David Thomas, and others
-
Software Development Pearls
- Lessons from Fifty Years of Software Experience
- By: Karl Wiegers
- Narrated by: Amy Gordon
- Length: 10 hrs and 49 mins
- Unabridged
-
Overall
-
Performance
-
Story
You can't afford to make every mistake yourself! Software Development Pearls helps you improve faster and bypass much of the pain by learning from others who have already climbed the learning curve. Drawing on 25-plus years of helping software teams succeed, Karl Wiegers has crystallized 60 concise, practical lessons for all your projects, regardless of your role, industry, technology, or methodology.
-
-
Great book.I loved it.I got to listen to it again
- By Jack W. Ferry on 06-11-24
By: Karl Wiegers
-
The Clean Coder
- A Code of Conduct for Professional Programmers
- By: Robert C. Martin
- Narrated by: Theodore O'Brien
- Length: 6 hrs and 12 mins
- Unabridged
-
Overall
-
Performance
-
Story
Great software is something to marvel at: powerful, elegant, functional, a pleasure to work with as both a developer and as a user. Great software isn’t written by machines. It is written by professionals with an unshakable commitment to craftsmanship. The Clean Coder will help you become one of them - and earn the pride and fulfillment that they alone possess.
-
-
The best one
- By Amazon Customer on 01-10-22
By: Robert C. Martin
-
Clean Code
- A Handbook of Agile Software Craftsmanship
- By: Robert C. Martin
- Narrated by: Theodore O'Brien
- Length: 5 hrs and 49 mins
- Unabridged
-
Overall
-
Performance
-
Story
Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship. Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer - but only if you work at it.
-
-
Quick fix needed
- By R L on 05-06-21
By: Robert C. Martin
-
Designing Data-Intensive Applications
- The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
- By: Martin Kleppmann
- Narrated by: Benjamin Lange
- Length: 20 hrs and 56 mins
- Unabridged
-
Overall
-
Performance
-
Story
Author Martin Kleppmann helps you navigate the diverse data landscape by examining the pros and cons of various technologies for processing and storing data. Software keeps changing, but the fundamental principles remain the same. With this book, software engineers and architects will learn how to apply those ideas in practice, and how to make full use of data in modern applications.
-
-
Must read for senior+ software engineers
- By Navid v on 05-29-21
By: Martin Kleppmann
-
Articulating Design Decisions
- Communicate with Stakeholders, Keep Your Sanity, and Deliver the Best User Experience
- By: Tom Greever
- Narrated by: Ric Chetter
- Length: 6 hrs and 56 mins
- Unabridged
-
Overall
-
Performance
-
Story
Talking to people about your designs might seem like a basic skill, but it can be difficult to do well. In many cases, how you communicate with stakeholders, clients, and other non-designers may be more important than the designs themselves. Because if you can't get their support, your work will never see the light of day - no matter how good it is. This practical guide focuses on principles, tactics, and actionable methods for presenting your designs.
-
-
A must for any UX Designer!
- By Michael on 04-05-22
By: Tom Greever
-
Fundamentals of Software Architecture
- An Engineering Approach
- By: Mark Richards, Neal Ford
- Narrated by: Benjamin Lange
- Length: 13 hrs and 10 mins
- Unabridged
-
Overall
-
Performance
-
Story
This book provides the first comprehensive overview of software architecture’s many aspects. Aspiring and existing architects alike will examine architectural characteristics, architectural patterns, component determination, diagramming and presenting architecture, evolutionary architecture, and many other topics. Mark Richards and Neal Ford—hands-on practitioners who have taught software architecture classes professionally for years—focus on architecture principles that apply across all technology stacks.
-
-
Helpful but business-centric
- By A.N. on 03-25-21
By: Mark Richards, and others
-
Building Microservices
- Designing Fine-Grained Systems
- By: Sam Newman
- Narrated by: Theodore O'Brien
- Length: 21 hrs and 12 mins
- Unabridged
-
Overall
-
Performance
-
Story
As organizations shift from monolithic applications to smaller, self-contained microservices, distributed systems have become more fine-grained. But developing these new systems brings its own host of problems. This expanded second edition takes a holistic view of topics that you need to consider when building, managing, and scaling microservices architectures. Through clear examples and practical advice, author Sam Newman gives everyone from architects and developers to testers and IT operators a firm grounding in the concepts.
-
-
Easy to Understand
- By Anonymous User on 04-27-22
By: Sam Newman
-
Staff Engineer
- Leadership Beyond the Management Track
- By: Will Larson
- Narrated by: Shaula Evans
- Length: 8 hrs and 52 mins
- Unabridged
-
Overall
-
Performance
-
Story
At most technology companies, you'll reach Senior software engineer, the career level for software engineers, in five to eight years. At the career level, your company's career ladder won't require that you work towards the next promotion; being promoted further is an exception rather than expected. This is also when many engineers are first given an opportunity to move into engineering management.
-
-
Great content but some audio issues
- By David M. Tang on 07-08-21
By: Will Larson
-
API Security in Action
- By: Neil Madden
- Narrated by: Marianne Sheehan
- Length: 20 hrs and 5 mins
- Unabridged
-
Overall
-
Performance
-
Story
A web API is an efficient way to communicate with an application or service. However, this convenience opens your systems to new security risks. API Security in Action gives you the skills to build strong, safe APIs you can confidently expose to the world.
-
-
Missing content
- By mslightn on 03-08-23
By: Neil Madden
-
Microservices Patterns
- With Examples in Java
- By: Chris Richardson
- Narrated by: Aiden Humphreys, Lou Fernandez
- Length: 18 hrs and 28 mins
- Unabridged
-
Overall
-
Performance
-
Story
Microservices Patterns teaches you how to develop and deploy production-quality microservices-based applications. This invaluable set of design patterns builds on decades of distributed system experience, adding new patterns for writing services and composing them into systems that scale and perform reliably under real-world conditions. More than just a patterns catalog, this practical guide offers experience-driven advice to help you design, implement, test, and deploy your microservices-based application.
-
-
There is lack of pdf with diagrams and images.
- By BoshTls on 10-28-19
By: Chris Richardson
-
Clean Agile
- Back to Basics
- By: Robert C. Martin
- Narrated by: Theodore O'Brien
- Length: 5 hrs and 53 mins
- Unabridged
-
Overall
-
Performance
-
Story
Nearly 20 years after the Agile Manifesto was first presented, the legendary Robert C. Martin (“Uncle Bob”) reintroduces Agile values and principles for a new generation - programmers and nonprogrammers alike. Martin, author of Clean Code and other highly influential software development guides, was there at Agile’s founding. Now, in Clean Agile: Back to Basics, he strips away misunderstandings and distractions that over the years have made it harder to use Agile than was originally intended.
-
-
Uncle Bob is at it Again
- By Michael on 03-02-25
By: Robert C. Martin
-
Micro Frontends in Action
- By: Michael Geers
- Narrated by: Sarah Dawe
- Length: 9 hrs and 14 mins
- Unabridged
-
Overall
-
Performance
-
Story
Browser-based software can quickly become complex and difficult to maintain, especially when it's implemented as a large single-page application. By adopting the micro frontends approach and designing your web apps as systems of features, you can deliver faster feature development, easier upgrades, and pick and choose the technology you use in your stack. Micro Frontends in Action is your guide to simplifying unwieldy frontends by composing them from small, well-defined units.
By: Michael Geers
-
Python Programming for Beginners
- A Hands-on Easy Guide for Beginners to Learn Python Programming Fast, Coding Language, Data Analysis with Tools and Tricks
- By: John S. Code
- Narrated by: Daniel White
- Length: 3 hrs and 25 mins
- Unabridged
-
Overall
-
Performance
-
Story
Many people are afraid of programming and feel like it's just too hard. But with Python programming language, you will find that it can be easier than ever to learn about coding and even to read it as a professional. As you know, there are many computer programming languages. You’ll, perhaps, need more than one life to master them all.
By: John S. Code
-
User Story Mapping
- Discover the Whole Story, Build the Right Product
- By: Jeff Patton, Peter Economy - foreword
- Narrated by: Roy McCrerey
- Length: 8 hrs and 19 mins
- Unabridged
-
Overall
-
Performance
-
Story
User story mapping is a valuable tool for software development, once you understand why and how to use it. This insightful book examines how this often misunderstood technique can help your team stay focused on users and their needs without getting lost in the enthusiasm for individual product features. Author Jeff Patton shows you how changeable story maps enable your team to hold better conversations about the project throughout the development process. Your team will learn to come away with a shared understanding of what you’re attempting to build and why.
-
-
Straw man arguments and handwaving
- By Amazon Customer on 01-02-22
By: Jeff Patton, and others