Martin Fowler’s guide to reworking bad code into well-structured code Refactoring improves the design of existing code and enhances software maintainability, as well as making existing code easier to understand. Original Agile Manifesto signer and software development thought leader, Martin Fowler, provides a catalog of refactorings that explains why you should refactor; how to recognize code that needs refactoring; and how to actually do it successfully, no matter what language you use. Refactoring principles: understand the process and general principles of refactoringCode smells: recognize “bad smells” in code that signal opportunities to refactorApplication improvement: quickly apply useful refactorings to make a program easier to comprehend and changeBuilding tests: writing good tests increases a programmer’s effectivenessMoving features: an important part of refactoring is moving elements between contextsData structures: a collection of refactorings to organize data, an important role in programsConditional Logic: use refactorings to make conditional sections easier to understandAPIs: modules and their functions are the building blocks of our software, and APIs are the joints that we use to plug them togetherInheritance: it is both very useful and easy to misuse, and it’s often hard to see the misuse until it’s in the rear-view mirror---refactorings can fix the misuse Examples are written in JavaScript, but you shouldn’t find it difficult to adapt the refactorings to whatever language you are currently using as they look mostly the same in different languages. "Whenever you read [Refactoring], it’s time to read it again. And if you haven’t read it yet, please do before writing another line of code." –David Heinemeier Hansson, Creator of Ruby on Rails, Founder & CTO at Basecamp “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” –M. Fowler (1999)
Les mer
Preface1. Refactoring, a First Example2. Principles in Refactoring3. Bad Smells in Code4. Building Tests5. Toward a Catalog of Refactorings6. Composing Methods7. Moving Features between Objects8. Organizing Data9. Simplifying Conditional Expressions10. Making Method Calls Simpler11. Dealing with Generalization12. Big Refactorings13. Refactoring, Reuse, and Reality14. Refactoring Tools15. Putting It All Together
Les mer
The first update to a classic that is the standard reference for refactoring in over 15 yearsEnhanced, web-based features including interactive examples, video snippets, code highlightingExtensive use of JavaScript examples
Les mer
Martin Fowler is retaining everything that made Refactoring one of the world’s most popular and influential computer books, while updating with JavaScript examples throughout (to address many programmers’ current preferences) and reflecting today’s programming paradigms. The book’s catalog of individual refactorings has been updated, revised, and expanded.
Les mer

Produktdetaljer

ISBN
9780134757599
Publisert
2019-01-11
Utgave
2. utgave
Utgiver
Vendor
Addison Wesley
Vekt
920 gr
Høyde
234 mm
Bredde
192 mm
Dybde
20 mm
Aldersnivå
P, 06
Språk
Product language
Engelsk
Format
Product format
Innbundet
Antall sider
448

Forfatter

Biographical note

Martin Fowler is Chief Scientist at ThoughtWorks. He describes himself as “an author, speaker, consultant and general loud-mouth on software development.” Fowler concentrates on designing enterprise software: exploring what makes a good design and what practices are needed to create one.