Five Lines of Code

How and when to refactor



Bookstore > Books > Five Lines of Code

Price$35.95 - $49.99
Rating
AuthorsChristian Clausen, Robert C. Martin
PublisherManning
Published2021
Pages336
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-10161729831X
ISBN-139781617298318
EBook Hardcover Paperback

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.

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.


  1. (2 books)


5 5 86

Similar Books


Codeless Data Structures and Algorithms

Codeless Data Structures and Algorithms

by Armstrong Subero

In the era of self-taught developers and programmers, essential topics in the industry are frequently learned without a formal academic foundation. A solid grasp of data structures and algorithms (DSA) is imperative for anyone looking to do professional software development and engineering, but classes in the subject can be dry or spend t...

Price:  $26.71  |  Publisher:  Apress  |  Release:  2020

10 PRINT CHR$(205.5+RND(1)); : GOTO 10

10 PRINT CHR$(205.5+RND(1)); : GOTO 10

by Nick Montfort, Patsy Baudoin, John Bell, Ian Bogost, Jeremy Douglass, Mark C. Marino, Michael Mateas, Casey Reas, Mark Sample, Noah Vawter

This book takes a single line of code - the extremely concise BASIC program for the Commodore 64 inscribed in the title - and uses it as a lens through which to consider the phenomenon of creative computing and the way computer programs exist in culture. The authors of this collaboratively written book treat code not as merely functional ...

Price:  $25.00  |  Free ebook  |  Publisher:  Self-publishing  |  Release:  2013

PowerShell for Sysadmins

PowerShell for Sysadmins

by Adam Bertram

PowerShell is both a scripting language and an administrative shell that lets you control and automate nearly every aspect of IT. In PowerShell for Sysadmins, five-time Microsoft MVP "Adam the Automator" Bertram shows you how to use PowerShell to manage and automate your desktop and server environments so that you can head out f...

Price:  $19.39  |  Publisher:  No Starch Press  |  Release:  2020

Azure Infrastructure as Code

Azure Infrastructure as Code

by Henry Been, Eduard Keilholz, Erwin Staal

Azure Infrastructure as Code teaches you to use Azure's native infrastructure as code (IaC) tools, like ARM and Bicep, to build, manage, and scale infrastructure with just a few lines of code. You'll discover ARM templates, deployment stacks, and the powerful new language Bicep. See how easy they make it to create new environmen...

Price:  $49.95  |  Publisher:  Manning  |  Release:  2022

Metaprogramming Elixir

Metaprogramming Elixir

by Chris McCord

Metaprogramming is one of Elixir's greatest features. Maybe you've played with the basics or written a few macros. Now you want to take it to the next level. This book is a guided series of metaprogramming tutorials that take you step by step to metaprogramming mastery. You'll extend Elixir with powerful features and write ...

Price:  $17.00  |  Publisher:  The Pragmatic Programmers  |  Release:  2015

Reactive Programming with RxJS 5

Reactive Programming with RxJS 5

by Sergi Mansilla

Create concurrent applications with ease using RxJS 5, a powerful event composition library. Real-world JavaScript applications require you to master asynchronous programming, and chances are that you'll spend more time coordinating asynchronous events than writing actual functionality. This book introduces concepts and tools that wi...

Price:  $29.29  |  Publisher:  The Pragmatic Programmers  |  Release:  2018

JavaScript Regular Expressions

JavaScript Regular Expressions

by Loiane Groner, Gabriel Manricks

Regular expressions are patterns or templates that allow you to define a set of rules in a natural yet vague way, giving you the ability to match and validate text. Therefore, they have been implemented in nearly every modern programming language. JavaScript's implementation allows us to perform complex tasks with a few lines of code...

Price:  $34.99  |  Publisher:  Packt Publishing  |  Release:  2015

Web Application Development with R Using Shiny

Web Application Development with R Using Shiny

by Chris Beeley

R is a highly flexible and powerful tool for analyzing and visualizing data. Shiny is the perfect companion to R, making it quick and simple to share analysis and graphics from R that users can interact with and query over the Web. Let Shiny do the hard work and spend your time generating content and styling, not writing code to handle us...

Price:  $20.99  |  Publisher:  Packt Publishing  |  Release:  2013