Awareness of design smells – indicators of common design problems – helps developers or software engineers understand mistakes made while designing, what design principles were overlooked or misapplied, and what principles need to be applied properly to address those smells through refactoring. Developers and software engineers may "know" principles and patterns, but are not aware of the "smells" that exist in their design because of wrong or mis-application of principles or patterns. These smells tend to contribute heavily to technical debt – further time owed to fix projects thought to be complete – and need to be addressed via proper refactoring.
Refactoring for Software Design Smells presents 25 structural design smells, their role in identifying design issues, and potential refactoring solutions. Organized across common areas of software design, each smell is presented with diagrams and examples illustrating the poor design practices and the problems that result, creating a catalog of nuggets of readily usable information that developers or engineers can apply in their projects. The authors distill their research and experience as consultants and trainers, providing insights that have been used to improve refactoring and reduce the time and costs of managing software projects. Along the way they recount anecdotes from actual projects on which the relevant smell helped address a design issue.
- Contains a comprehensive catalog of 25 structural design smells (organized around four fundamental design
principles) that contribute to technical debt in software projects
- Presents a unique naming scheme for smells that helps understand the cause of a smell as well as points
toward its potential refactoring
- Includes illustrative examples that showcase the poor design practices underlying a smell and the problems
- Covers pragmatic techniques for refactoring design smells to manage technical debt and to create and maintain
high-quality software in practice
- Presents insightful anecdotes and case studies drawn from the trenches of real-world projects
Software engineers, technical leads, software designers, and software architects, as well as those engaged as trainers for topics related to software design, refactoring, design smells, and design quality
- Foreword by Grady Booch
- Foreword by Dr. Stéphane Ducasse
- Chapter 1. Technical Debt
- 1.1. What is Technical Debt?
- 1.2. What Constitutes Technical Debt?
- 1.3. What is the Impact of Technical Debt?
- 1.4. What causes technical debt?
- 1.5. How to Manage Technical Debt?
- Chapter 2. Design Smells
- 2.1. Why Care About Smells?
- 2.2. What Causes Smells?
- 2.3. How to address smells?
- 2.4. What Smells Are Covered in This Book?
- 2.5. A Classification of Design Smells
- Chapter 3. Abstraction Smells
- 3.1. Missing Abstraction
- 3.2. Imperative Abstraction
- 3.3. Incomplete Abstraction
- 3.4. Multifaceted Abstraction
- 3.5. Unnecessary Abstraction
- 3.6. Unutilized Abstraction
- 3.7. Duplicate Abstraction
- Chapter 4. Encapsulation Smells
- 4.1. Deficient Encapsulation
- 4.2. Leaky Encapsulation
- 4.3. Missing Encapsulation
- 4.4. Unexploited Encapsulation
- Chapter 5. Modularization Smells
- 5.1. Broken Modularization
- 5.2. Insufficient Modularization
- 5.3. Cyclically-Dependent Modularization
- 5.4. Hub-like Modularization
- Chapter 6. Hierarchy Smells
- 6.1. Missing Hierarchy
- 6.2. Unnecessary Hierarchy
- 6.3. Unfactored Hierarchy
- 6.4. Wide Hierarchy
- 6.5. Speculative Hierarchy
- 6.6. Deep Hierarchy
- 6.7. Rebellious Hierarchy
- 6.8. Broken Hierarchy
- 6.9. Multipath Hierarchy
- 6.10. Cyclic Hierarchy
- Chapter 7. The Smell Ecosystem
- 7.1. The Role of Context
- 7.2. Interplay of Smells
- Chapter 8. Repaying Technical Debt in Practice
- 8.1. The Tools
- 8.2. The Process
- No. of pages:
- © Morgan Kaufmann 2015
- 3rd November 2014
- Morgan Kaufmann
- eBook ISBN:
- Paperback ISBN:
Girish Suryanarayana is currently a Senior Research Scientist at Research and Technology Center, Siemens Technology and Services Pvt. Ltd. Bangalore, India. At Siemens, he is involved in providing architectural guidance to software development teams, pursuing research in topics related to software architecture and cloud computing, and conducting internal software design and architecture training. Girish is a member of the IEEE Software Advisory Board and is the General Chair for the IEEE Software Experts Summit 2014 conference. He actively contributes to software engineering conferences. In 2013, he was on the program committee for the Software Engineering In Practice (SEIP) track at the 35th International Conference on Software Engineering (ICSE). Girish received a PhD in Information and Computer Science from the University of California, Irvine, in 2007. His research interests include software architecture, design patterns, design smells, refactoring, cloud computing, and reputation-based trust management systems. He is an IEEE-certified Software Engineering Certified Instructor (SECI) and regularly conducts training for the IEEE SWEBOK Certificate Program (SCP) and IEEE Certified Software Development Associate (CSDA) programs. He has also helped contribute course material for the IEEE’s SWEBOK Certificate Program (SCP). He is regularly invited by local universities to deliver guest lectures on software architecture and design topics. Additionally, he is the General Chair for IEEE SES (Software Expert Summit) 2014 which is being organized by IEEE Software.
Senior Research Scientist, Research and Technology Center, Siemens Technology and Services Pvt. Ltd. Bangalore, India
Ganesh Samarthyam has more than 11 years of experience in the IT industry. He is an independent consultant and corporate trainer based in Bangalore, India. Earlier, he worked for the Software Architecture and Development team in Siemens Corporate Research & Technologies in Bangalore. His work involved providing consultancy to development teams on code and design quality, pursuing applied research in the areas of software design, and conducting trainings on topics related to software design and refactoring and quality-driven development. Prior to Siemens, he worked in Hewlett-Packard's C++ compiler team for 5 years where he also represented HP in the ANSI/ISO C++ standardization committee. He is an IEEE-certified Software Engineering Certified Instructor (SECI) and regularly conducts training for the IEEE SWEBOK Certificate Program (SCP) and IEEE Certified Software Development Associate (CSDA) program. He has also helped contribute course material for the IEEE’s SWEBOK Certificate Program (SCP). Ganesh has authored/co-authored several books on programming. His latest book titled "Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805" (co-authored with Tushar Sharma) has been published by Apress in 2013. In his free time, he also regularly contributes to a column on software programming and design in “Open Source For You” magazine. His areas of interest include design smells and refactoring, bug patterns, software quality assessment methods, and programming languages. He can be reached at firstname.lastname@example.org.
Independent consultant based in Bangalore, India
Tushar Sharma is currently a Technical Expert in the Software Architecture and Development group at the Research and Technology Center, Siemens Technology and Services Pvt. Ltd., Bangalore, India. His work at Siemens involves researching and providing consultation on topics related to software design, refactoring, testability, design patterns, and change impact analysis. He has a Masters degree in Computer Science from the Indian Institute of Technology-Madras (IIT-M), Chennai, India, where he specialized in design patterns and refactoring. Tushar conducts several internal training sessions on topics related to software design and refactoring. He has been actively pursuing his research interests that resulted in several patents, research papers, and tools related to software design and refactoring. He is also the co-author of the book “Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805" published by Apress in 2013. Additionally, he is the Local Publicity Chair for IEEE SES (Software Expert Summit) 2014.
Technical Expert at Research and Technology Center, Siemens Technology and Services Pvt. Ltd.
"Given its practical orientation and the variety of real-world examples offered throughout the book, this is a must-have for any practicing software engineer, developer, software architect, or anyone else interested in software design."--Computing Reviews
"... a delightful, engaging, actionable read... you have in your hand a veritable field guide of smells... one of the more interesting and complex expositions of software smells you will ever find... The concept of technical debt is central to understanding the forces that weigh upon systems, for it often explains where and how and why a system is stressed. What delights me about this present book is its focus on technical debt and refactoring as the actionable means to attend to it." --From the foreword by Grady Booch, IBM Fellow and Chief Scientist for Software Engineering, IBM Research
"Evolving software inevitably accumulates technical debt, making maintenance increasingly painful and expensive. The authors, based on their extensive experience, categorize the major design problems (smells) that come up in software, and lucidly explain how these can be solved with appropriate refactoring." --Diomidis Spinellis, Author of “Code Reading” and “Code Quality”, Addison-Wesley Professional
"...the book I would have loved to write... Refactoring for Software Design Smells is an excellent book. It is another milestone that professionals will use... I’m sure that you will learn a lot from it and that you will enjoy it." --From the foreword by Stéphane Ducasse, Co-author of Object-Oriented Reengineering Patterns, Morgan Kaufmann