{"product_id":"9781617298318","title":"Five Lines of Code: How and when to refactor","description":"\u003ctable\u003e\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd style=\"\"\u003e\u003cstrong\u003eAuthor\/Contributor(s):\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd style=\"\"\u003eClausen, Christian\u003cbr\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"\"\u003e\u003cstrong\u003ePublisher:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eManning\u003cbr\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"\"\u003e\u003cstrong\u003eDate:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e10\/26\/2021\u003cbr\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"\"\u003e\u003cstrong\u003eBinding:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd style=\"\"\u003ePaperback\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd style=\"\"\u003e\u003cstrong\u003eCondition:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd style=\"\"\u003eNEW\u003cbr\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\u003c\/table\u003e\u003cb\u003e\u003ci\u003eFive Lines of Code\u003c\/i\u003e 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.\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003eIn \u003ci\u003eFive Lines of Code\u003c\/i\u003e you will learn:\u003cbr\u003e\u003cbr\u003eThe signs of bad code\u003cbr\u003eImproving code safely, even when you don’t understand it\u003cbr\u003eBalancing optimization and code generality\u003cbr\u003eProper compiler practices\u003cbr\u003eThe Extract method, Introducing Strategy pattern, and many other refactoring patterns\u003cbr\u003eWriting stable code that enables change-by-addition\u003cbr\u003eWriting code that needs no comments\u003cbr\u003eReal-world practices for great refactoring\u003cbr\u003e\u003cbr\u003eImproving existing code—refactoring—is one of the most common tasks you’ll face as a programmer. \u003ci\u003eFive Lines of Code\u003c\/i\u003e 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.\u003cbr\u003e\u003cbr\u003eForeword by Robert C. Martin.\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAbout the technology\u003c\/b\u003e\u003cbr\u003eEvery 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!\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAbout the book\u003c\/b\u003e\u003cbr\u003e\u003ci\u003eFive Lines of Code\u003c\/i\u003e 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.\u003cbr\u003e\u003cbr\u003e\u003cb\u003eWhat's inside\u003c\/b\u003e\u003cbr\u003e\u003cbr\u003eThe signs of bad code\u003cbr\u003eImproving code safely, even when you don’t understand it\u003cbr\u003eBalancing optimization and code generality\u003cbr\u003eProper compiler practices\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAbout the reader\u003c\/b\u003e\u003cbr\u003eFor developers of all skill levels. Examples use easy-to-read Typescript, in the same style as Java and C#.\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAbout the author\u003c\/b\u003e\u003cbr\u003e\u003cb\u003eChristian Clausen\u003c\/b\u003e works as a Technical Agile Coach, teaching teams how to refactor code.\u003cbr\u003e\u003cbr\u003e\u003cb\u003eTable of Contents\u003c\/b\u003e\u003cbr\u003e1 Refactoring refactoring\u003cbr\u003e2 Looking under the hood of refactoring\u003cbr\u003ePART 1 LEARN BY REFACTORING A COMPUTER GAME\u003cbr\u003e3 Shatter long function\u003cbr\u003e4 Make type codes work\u003cbr\u003e5 Fuse similar code together\u003cbr\u003e6 Defend the data\u003cbr\u003ePART 2 TAKING WHAT YOU HAVE LEARNED INTO THE REAL WORLD\u003cbr\u003e7 Collaborate with the compiler\u003cbr\u003e8 Stay away from comments\u003cbr\u003e9 Love deleting code\u003cbr\u003e10 Never be afraid to add code\u003cbr\u003e11 Follow the structure in the code\u003cbr\u003e12 Avoid optimizations and generality\u003cbr\u003e13 Make bad code look bad\u003cbr\u003e14 Wrapping up","brand":"Manning","offers":[{"title":"Default Title","offer_id":48176682664191,"sku":"9781617298318","price":49.99,"currency_code":"USD","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0452\/0886\/2873\/files\/Jacket_cd87114d-9197-415b-88d5-3c3c8f867d3f.jpg?v=1771351337","url":"https:\/\/massivebookshop.com\/products\/9781617298318","provider":"MASSIVE BOOKSHOP","version":"1.0","type":"link"}