Skip to content
ImagineWorld

Refactoring

node_idnode-book_refactoring-improving-design
node_typenode-book
schema_profileworld.node_book.v1
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityinforms
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the architecture-tradeoffs field, the work is the refactoring canon — improving the design of existing code through small, safe, decided steps — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD
constitutional_citationCONSTITUTION
evidence_bundle
compared_by
grounded_by
anchors_into
peer_node_books
pillar_membershipJ — architecture_design_craft
book_titleRefactoring
book_subtitleImproving the Design of Existing Code
book_authorMartin Fowler
book_publisherAddison-Wesley
book_editionSecond Edition
total_chapters12
total_source_pages455
total_nodes13
source_pdfrefactoring-improving-design.pdf
source_pdf_sha256f7f166fd4c7799d0982467e94204cdbf0fa966be462d98634674f1f38b8523a8
ocr_sourceLightOnOCR-3-4B via vLLM (400dpi; grounding+transcription modes)
ocr_quality_classcleaned
verification_statusone-shot-fill-lint-clean
verification_progress{"all_nodes":"PHASE 1 fill complete; deterministic lint clean (2026-10-12)"}
stitched_bykimi-k3-lightonocr3-one-shot
generated_at2026-10-12
pillar_normalizedJ-architecture_design_craft
updated_at2026-10-14T05:37:14Z
visual_conversions0
visual_conversion_placeholders0
asset_count145
local graph

node-book_refactoring-improving-design_chapter-01-refactoring-a-first-example — Refactoring: A First Example

node-book_refactoring-improving-design_chapter-02-principles-in-refactoring — Principles in Refactoring

node-book_refactoring-improving-design_chapter-03-bad-smells-in-code — Bad Smells in Code

node-book_refactoring-improving-design_chapter-04-building-tests — Building Tests

node-book_refactoring-improving-design_chapter-05-introducing-the-catalog — Introducing the Catalog

node-book_refactoring-improving-design_chapter-06-a-first-set-of-refactorings — A First Set of Refactorings

node-book_refactoring-improving-design_chapter-07-encapsulation — Encapsulation

node-book_refactoring-improving-design_chapter-08-moving-features — Moving Features

node-book_refactoring-improving-design_chapter-09-organizing-data — Organizing Data

node-book_refactoring-improving-design_chapter-10-simplifying-conditional-logic — Simplifying Conditional Logic

node-book_refactoring-improving-design_chapter-11-refactoring-apis — Refactoring APIs

node-book_refactoring-improving-design_chapter-12-dealing-with-inheritance — Dealing with Inheritance

“Any fool can write code that a computer can understand.
Good programmers write code that humans can understand.”
—M. Fowler (1999)


Improving the Design of Existing Code


Martin Fowler
with contributions by
Kent Beck


[!visual-conversion] Two bridges: a green truss bridge and a modern cable-stayed Cropped from the scan (PDF page 001): Two bridges: a green truss bridge and a modern cable-stayed bridge.


SECOND EDITION


[!visual-conversion] logo “P” Cropped from the scan (PDF page 001): logo “P”


[!warning] cover image not recoverable The transcription references an image on the title page that has no matching grounding block; no crop was produced.


[!warning] cover image not recoverable The transcription references an image on the title page that has no matching grounding block; no crop was produced.

Martin Fowler

with contributions by
Kent Beck

Addison-Wesley

Boston • Columbus • New York • San Francisco • Amsterdam • Cape Town
Dubai • London • Madrid • Milan • Munich • Paris • Montreal • Toronto • Delhi •
Mexico City
São Paulo • Sydney • Hong Kong • Seoul • Singapore • Taipei • Tokyo

www.EBooksWorld.ir

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.

The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.

For information about buying this title in bulk quantities, or for special sales opportunities (which may include electronic versions; custom cover designs; and content particular to your business, training goals, marketing focus, or branding interests), please contact our corporate sales department at [email protected] or (800) 382-3419.

For government sales inquiries, please contact [email protected].

For questions about sales outside the U.S., please contact [email protected].

Visit us on the Web: informit.com/aw

Library of Congress Control Number: 2018950015

Copyright © 2019 Pearson Education, Inc.

Cover photo: Waldo-Hancock Bridge & Penobscot Narrows Bridge by Martin Fowler
Lightbulb graphic: Irina Adamovich/Shutterstock

All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For

www.EBooksWorld.ir

information regarding permissions, request forms and the appropriate contacts within the Pearson Education Global Rights & Permissions Department, please visit www.pearsoned.com/permissions/.

ISBN-13: 978-0-13-475759-9
ISBN-10: 0-13-475759-9

1 18

www.EBooksWorld.ir