SlideShare a Scribd company logo
ADUF
Adaptable Design Up Front
Hayim Makabee
http://EffectiveSoftwareDesign.com
Context
 Iterative Software Development
 Agile, Incremental
Question
 How much design should be done up
front?
 Up front = Before starting the
implementation (coding).
Big Design Up Front
 BDUF = Do detailed design before
starting to code.
 Problems:
◦ Requirements are incomplete.
◦ Requirements may change.
◦ “The Scrum product backlog is allowed to
grow and change as more is learned
about the product and its customers.”
Emergent Design
 “With emergent design, a
development organization starts
delivering functionality and lets the
design emerge.”
 First iteration:
◦ Implement initial features.
 Next iterations:
◦ Implement additional features.
◦ Refactor.
Just Enough Design
 “Just enough sits somewhere in the
chasm between big design up front's
analysis paralysis and emergent
design's refactor distractor.” – Simon
Brown
 Question: How much design is “just
enough”?
Planned: Modiin
Emergent: Jerusalem Old City
Eroding Design
Eroding Design
 “The biggest risk associated with
Piecemeal Growth is that it will
gradually erode the overall
structure of the system, and
inexorably turn it into a Big Ball of
Mud.” - Brian Foote and Joseph Yoder
– “Big Ball of Mud”
Software Entropy
 Entropy is a measure of the number of
specific ways in which a system may
be arranged (a measure of disorder).
 The entropy of an isolated system
never decreases.
Lehman Laws
 A computer program that is used will
be modified.
 When a program is modified, its
complexity will increase, provided that
one does not actively work against
this.
Conclusions so far…
 In summary:
◦ We must design up front.
◦ BDUF does not support change.
◦ Emergent design works at low-level.
◦ Just Enough DUF is not clear.
 We need:
◦ The design must support change.
Adaptability
 “A system that can cope readily with
a wide range of
requirements, will, all other things
being equal, have an advantage over
one that cannot. Such a system can
allow unexpected requirements to
be met with little or no
reengineering, and allow its more
skilled customers to rapidly address
novel challenges.” - Brian Foote and
Joseph Yoder – “Big Ball of Mud”
New development mindset
 Instead of planning for software
development, plan for software
evolution.
 Instead of designing a single system,
design a family of systems.
Family of Systems
 Software Product Line: “A set of
software-intensive systems that share
a common, managed set of features
satisfying the specific needs of a
particular market segment or mission
and that are developed from a
common set of core assets in a
prescribed way.” – Software
Engineering Institute
Adaptable Design
 Adaptable Software Design: A generic
software design for a family of
systems which does not need to be
changed to accommodate new
requirements.
 ADUF = Adaptable Design Up Front!
Open/Closed Principle
 “Software entities (classes, modules,
functions, etc.) should be open for
extension, but closed for modification.”
- Bertrand Meyer
Strategy Design Pattern
Adaptable Design Up Front and
the Open/Closed Principle
 ADUF focuses on the early definition
of the “closed” aspects of the design
while at the same time allows easy
evolution by making this design open
to extensions.
 Closed: Captures essential entities
and relationships.
 Open: Provides mechanisms for
extensibility.
Architecture vs. Interior Design
Common Errors
 Too much design up front
 Not enough design up front
 Too much openness
 Not enough openness
Too much design up front
 Capturing aspects that are not
essential as if they were such.
 The design may need to change (thus
it is not really “closed”).
 Examples:
◦ Specific details are not generalized.
◦ Designing for a specific system instead of
designing for a family of systems.
Not enough design up front
 Leaving away some of the essential
aspects of the system.
 These aspects will need to be added
to the design when other parts of the
system are already implemented.
 Example:
◦ Adding relationships to new entities may
cause changes to existing interfaces.
Too much openness
 The design is over
engineered, resulting in complexity not
really necessary.
 Example:
◦ It is always possible to reduce coupling
through additional layers of indirection.
◦ With many layers, it is difficult to locate
where the business logic is implemented.
Not enough openness
 The design captures all essential
aspects, but there are not
mechanisms that allow this design to
be easily extended.
 Example:
◦ If there are Interfaces for the main
entities, there should also be Factories to
instantiate concrete subclasses.
Extensible Designs
Main alternatives for extensible designs:
 Frameworks
◦ Plug-ins
 Platforms
Frameworks
 Framework: “A software framework is
an abstraction in which software
providing generic functionality can be
selectively changed by additional
user-written code, thus providing
application-specific software.”
Plug-ins
 Plug-in: “A plug-in is a software
component that adds a specific
feature to an existing software
application. When an application
supports plug-ins, it enables
customization.”
Pluggable Components
Versioning
 Traditional:
◦ Version = modifications + additions.
◦ After n iterations: n versions.
 Component-based:
◦ Version = combination of new
implementations of components.
◦ System with m components, after n
iterations: nm versions.
Platforms
 Platform: “Technology that enables the
creation of products and processes
that support present or future
development.”
 Software platforms provide services
that are used by several applications.
 Platforms and applications may evolve
independently of each other.
Question 1
 How do you identify the components
in your framework or the services in
your platform?
Domain Modeling
 “A domain model is a conceptual
model of all the topics related to a
specific problem. It describes the
various entities, their attributes, roles,
and relationships, plus the constraints
that govern the problem domain.”
Question 2
 How do you decouple the components
in your framework?
Design Patterns
 Reduce coupling using Design
Patterns.
 Most patterns avoid direct links
between concrete classes, using
interfaces and abstract classes.
 Example: Use Observer when several
types of objects must react to the
same event.
Example: Recommender System
Recommender System Model
Model Recommender
Trainer Historic Data
Recommender System
Framework
After 1 year of development:
 Historic Data: 13 subclasses.
 Model: 9 subclasses.
 Trainer: 9 subclasses.
 Recommender: 19 subclasses.
What about YAGNI?
 YAGNI = You aren't gonna need it.
 A principle of extreme programming
(XP) that states that a programmer
should not add functionality until
deemed necessary.
 “Always implement things when you
actually need them, never when you
just foresee that you need them.” -
Ron Jeffries
YAGNI vs. ADUF
 YAGNI tells us to avoid doing what we
are not sure we will need.
 ADUF tells us:
◦ Define the things you are sure you will
need in any case.
◦ Prepare for the things that you may need
in the future (adaptability).
◦ NIAGNI: “No, I am gonna need it!”
Conclusions
 Software systems must evolve over time.
 This evolution should be planned and
supported trough Adaptable Software
Designs.
 Domain Modeling: Identify the entities
and relationships that form the “closed”
part of the design.
 Framework Design: Design a framework
that represents the model and add
mechanisms for extensibility, making it
“open”.
Related Work
 Software Engineering Institute:
◦ Software Product Lines
 Alistair Cockburn:
◦ Walking Skeleton
◦ Incremental Rearchitecture
 Neal Ford:
◦ Emergent Design
◦ Evolutionary Architecture
 Simon Brown:
◦ Just Enough Design Up Front
Adaptability & Evolution
“It is not the
strongest of the
species that
survives, nor the
most intelligent that
survives. It is the
one that is the
most adaptable to
change.”
Charles Darwin
Thanks!
Q&A
http://EffectiveSoftwareDesign.com

More Related Content

PPTX
Basic SQL and History
PPTX
Calculated Fields in Tableau
PPTX
Erd examples
PPTX
SOLID Principles
PPTX
Java socket programming
PDF
Introduction to SOLID Principles
PPT
Bridge Design Pattern
PPT
Network Effects And Dsir
Basic SQL and History
Calculated Fields in Tableau
Erd examples
SOLID Principles
Java socket programming
Introduction to SOLID Principles
Bridge Design Pattern
Network Effects And Dsir

What's hot (20)

PPS
Business Model Generation - Part1: Canvas
PPT
Relational Database Fundamentals
PPT
Java database connectivity
PPTX
Express JS
PPT
SOLID Design Principles
PPTX
Object oriented data model
KEY
Solid principles
PDF
Gof design pattern
PPTX
PPT
Java Persistence API (JPA) Step By Step
PDF
The Art of Discovering Bounded Contexts
PDF
Intellij idea tutorial
PDF
A Framework to Tie Learning ROI to Business Outcomes
PDF
Informatica question & answer set
PDF
Solid Principles
PPT
Week 3 Classification of Database Management Systems & Data Modeling
PPT
Erd optionality
PPT
Network programming in Java
PPTX
Adapter Design Pattern
PPTX
Presentation slides of Sequence Query Language (SQL)
Business Model Generation - Part1: Canvas
Relational Database Fundamentals
Java database connectivity
Express JS
SOLID Design Principles
Object oriented data model
Solid principles
Gof design pattern
Java Persistence API (JPA) Step By Step
The Art of Discovering Bounded Contexts
Intellij idea tutorial
A Framework to Tie Learning ROI to Business Outcomes
Informatica question & answer set
Solid Principles
Week 3 Classification of Database Management Systems & Data Modeling
Erd optionality
Network programming in Java
Adapter Design Pattern
Presentation slides of Sequence Query Language (SQL)
Ad

Viewers also liked (20)

PPTX
Adaptable Designs for Agile Software Development
PPT
Watch-It-Next: A Contextual TV Recommendation System
PDF
Resource Adaptive Systems
PPTX
Antifragile Software Design
PPTX
The SOLID Principles Illustrated by Design Patterns
PPTX
Aliyah: Looking for a hi-tech job in Israel
PPTX
Introduction to Event Sourcing and CQRS (IASA-IL)
PDF
Agile archiecture iltam 2014
PPTX
Reducing Technical Debt
PDF
Taming Big Balls of Mud with Diligence, Agile Practices, and Hard Work
PPTX
The Role of the Software Architect (short version)
PPTX
Software Quality Attributes
PPTX
To document or not to document? An exploratory study on developers' motivatio...
PPTX
An Event-Driven Approach for the Separation of Concerns
PPTX
Hierarchical Composable Optimization of Web Pages
PDF
July 2013 Talk, What Industry Needs from Architecture Description Languages
PDF
Adaptive Object Model - IASA IL Meeting on Software Evolution (3/2014)
PPTX
Designing with tests
PPTX
Extracting Quality Scenarios from Functional Scenarios
PPTX
The five expertise of a software architect
Adaptable Designs for Agile Software Development
Watch-It-Next: A Contextual TV Recommendation System
Resource Adaptive Systems
Antifragile Software Design
The SOLID Principles Illustrated by Design Patterns
Aliyah: Looking for a hi-tech job in Israel
Introduction to Event Sourcing and CQRS (IASA-IL)
Agile archiecture iltam 2014
Reducing Technical Debt
Taming Big Balls of Mud with Diligence, Agile Practices, and Hard Work
The Role of the Software Architect (short version)
Software Quality Attributes
To document or not to document? An exploratory study on developers' motivatio...
An Event-Driven Approach for the Separation of Concerns
Hierarchical Composable Optimization of Web Pages
July 2013 Talk, What Industry Needs from Architecture Description Languages
Adaptive Object Model - IASA IL Meeting on Software Evolution (3/2014)
Designing with tests
Extracting Quality Scenarios from Functional Scenarios
The five expertise of a software architect
Ad

Similar to ADUF - Adaptable Design Up Front (20)

PPTX
Software Architecture for Agile Development
DOCX
Software development life cycle
PDF
Software Design and Architecture - 1 -Chapter One.pdf
PPT
Software Design vs. Software Architecture
PPT
Chapter 3 Software Process Model of .ppt
PPT
Software Process Model in software engineering
PPT
Chapter 3 Software Process Model.ppt
PDF
lecture notes on Introduction to Software Engineering CSC 209 .pdf
PPT
Week_03-Agile Developmnet.ppt
PPT
SE Lecture 3.ppt
PDF
Software design.edited (1)
ODP
Agile Engineering
PPT
Chap 3 - Agile - XP.ppt
PPT
Software process model
PPT
Fed Up Of Framework Hype Dcphp
PDF
Creating An Incremental Architecture For Your System
PDF
Various Process of Software Engineering notes
PPTX
Software Process Models - Types - Explanations.pptx
PDF
Clean architecture with asp.net core
PPTX
Software development philosophies v1
Software Architecture for Agile Development
Software development life cycle
Software Design and Architecture - 1 -Chapter One.pdf
Software Design vs. Software Architecture
Chapter 3 Software Process Model of .ppt
Software Process Model in software engineering
Chapter 3 Software Process Model.ppt
lecture notes on Introduction to Software Engineering CSC 209 .pdf
Week_03-Agile Developmnet.ppt
SE Lecture 3.ppt
Software design.edited (1)
Agile Engineering
Chap 3 - Agile - XP.ppt
Software process model
Fed Up Of Framework Hype Dcphp
Creating An Incremental Architecture For Your System
Various Process of Software Engineering notes
Software Process Models - Types - Explanations.pptx
Clean architecture with asp.net core
Software development philosophies v1

More from Hayim Makabee (14)

PDF
Movie Quotes Search Engine Industrial Project
PPTX
Managing your Reputation
PPTX
Applications of Machine Learning - INDT Webinar
PPTX
Applications of Machine Learning
PPTX
Blue Ocean Strategy: KashKlik Use Case
PPTX
Managing your Reputation Gvahim Webinar
PPTX
Explainable Machine Learning (Explainable ML)
PPTX
Automated Machine Learning (Auto ML)
PPTX
Managing your Reputation
PPTX
The Story of a Young Oleh (Immigrant in Israel)
PPTX
Applications of Machine Learning
PDF
To document or not to document? An exploratory study on developers' motivatio...
PPTX
The Role of the Software Architect
PDF
Reducing Technical Debt: Using Persuasive Technology for Encouraging Software...
Movie Quotes Search Engine Industrial Project
Managing your Reputation
Applications of Machine Learning - INDT Webinar
Applications of Machine Learning
Blue Ocean Strategy: KashKlik Use Case
Managing your Reputation Gvahim Webinar
Explainable Machine Learning (Explainable ML)
Automated Machine Learning (Auto ML)
Managing your Reputation
The Story of a Young Oleh (Immigrant in Israel)
Applications of Machine Learning
To document or not to document? An exploratory study on developers' motivatio...
The Role of the Software Architect
Reducing Technical Debt: Using Persuasive Technology for Encouraging Software...

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Modernizing your data center with Dell and AMD
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Empathic Computing: Creating Shared Understanding
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Cloud computing and distributed systems.
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
A Presentation on Artificial Intelligence
Modernizing your data center with Dell and AMD
Network Security Unit 5.pdf for BCA BBA.
Empathic Computing: Creating Shared Understanding

ADUF - Adaptable Design Up Front

  • 1. ADUF Adaptable Design Up Front Hayim Makabee http://EffectiveSoftwareDesign.com
  • 2. Context  Iterative Software Development  Agile, Incremental
  • 3. Question  How much design should be done up front?  Up front = Before starting the implementation (coding).
  • 4. Big Design Up Front  BDUF = Do detailed design before starting to code.  Problems: ◦ Requirements are incomplete. ◦ Requirements may change. ◦ “The Scrum product backlog is allowed to grow and change as more is learned about the product and its customers.”
  • 5. Emergent Design  “With emergent design, a development organization starts delivering functionality and lets the design emerge.”  First iteration: ◦ Implement initial features.  Next iterations: ◦ Implement additional features. ◦ Refactor.
  • 6. Just Enough Design  “Just enough sits somewhere in the chasm between big design up front's analysis paralysis and emergent design's refactor distractor.” – Simon Brown  Question: How much design is “just enough”?
  • 10. Eroding Design  “The biggest risk associated with Piecemeal Growth is that it will gradually erode the overall structure of the system, and inexorably turn it into a Big Ball of Mud.” - Brian Foote and Joseph Yoder – “Big Ball of Mud”
  • 11. Software Entropy  Entropy is a measure of the number of specific ways in which a system may be arranged (a measure of disorder).  The entropy of an isolated system never decreases.
  • 12. Lehman Laws  A computer program that is used will be modified.  When a program is modified, its complexity will increase, provided that one does not actively work against this.
  • 13. Conclusions so far…  In summary: ◦ We must design up front. ◦ BDUF does not support change. ◦ Emergent design works at low-level. ◦ Just Enough DUF is not clear.  We need: ◦ The design must support change.
  • 14. Adaptability  “A system that can cope readily with a wide range of requirements, will, all other things being equal, have an advantage over one that cannot. Such a system can allow unexpected requirements to be met with little or no reengineering, and allow its more skilled customers to rapidly address novel challenges.” - Brian Foote and Joseph Yoder – “Big Ball of Mud”
  • 15. New development mindset  Instead of planning for software development, plan for software evolution.  Instead of designing a single system, design a family of systems.
  • 16. Family of Systems  Software Product Line: “A set of software-intensive systems that share a common, managed set of features satisfying the specific needs of a particular market segment or mission and that are developed from a common set of core assets in a prescribed way.” – Software Engineering Institute
  • 17. Adaptable Design  Adaptable Software Design: A generic software design for a family of systems which does not need to be changed to accommodate new requirements.  ADUF = Adaptable Design Up Front!
  • 18. Open/Closed Principle  “Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.” - Bertrand Meyer
  • 20. Adaptable Design Up Front and the Open/Closed Principle  ADUF focuses on the early definition of the “closed” aspects of the design while at the same time allows easy evolution by making this design open to extensions.  Closed: Captures essential entities and relationships.  Open: Provides mechanisms for extensibility.
  • 22. Common Errors  Too much design up front  Not enough design up front  Too much openness  Not enough openness
  • 23. Too much design up front  Capturing aspects that are not essential as if they were such.  The design may need to change (thus it is not really “closed”).  Examples: ◦ Specific details are not generalized. ◦ Designing for a specific system instead of designing for a family of systems.
  • 24. Not enough design up front  Leaving away some of the essential aspects of the system.  These aspects will need to be added to the design when other parts of the system are already implemented.  Example: ◦ Adding relationships to new entities may cause changes to existing interfaces.
  • 25. Too much openness  The design is over engineered, resulting in complexity not really necessary.  Example: ◦ It is always possible to reduce coupling through additional layers of indirection. ◦ With many layers, it is difficult to locate where the business logic is implemented.
  • 26. Not enough openness  The design captures all essential aspects, but there are not mechanisms that allow this design to be easily extended.  Example: ◦ If there are Interfaces for the main entities, there should also be Factories to instantiate concrete subclasses.
  • 27. Extensible Designs Main alternatives for extensible designs:  Frameworks ◦ Plug-ins  Platforms
  • 28. Frameworks  Framework: “A software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software.”
  • 29. Plug-ins  Plug-in: “A plug-in is a software component that adds a specific feature to an existing software application. When an application supports plug-ins, it enables customization.”
  • 31. Versioning  Traditional: ◦ Version = modifications + additions. ◦ After n iterations: n versions.  Component-based: ◦ Version = combination of new implementations of components. ◦ System with m components, after n iterations: nm versions.
  • 32. Platforms  Platform: “Technology that enables the creation of products and processes that support present or future development.”  Software platforms provide services that are used by several applications.  Platforms and applications may evolve independently of each other.
  • 33. Question 1  How do you identify the components in your framework or the services in your platform?
  • 34. Domain Modeling  “A domain model is a conceptual model of all the topics related to a specific problem. It describes the various entities, their attributes, roles, and relationships, plus the constraints that govern the problem domain.”
  • 35. Question 2  How do you decouple the components in your framework?
  • 36. Design Patterns  Reduce coupling using Design Patterns.  Most patterns avoid direct links between concrete classes, using interfaces and abstract classes.  Example: Use Observer when several types of objects must react to the same event.
  • 38. Recommender System Model Model Recommender Trainer Historic Data
  • 39. Recommender System Framework After 1 year of development:  Historic Data: 13 subclasses.  Model: 9 subclasses.  Trainer: 9 subclasses.  Recommender: 19 subclasses.
  • 40. What about YAGNI?  YAGNI = You aren't gonna need it.  A principle of extreme programming (XP) that states that a programmer should not add functionality until deemed necessary.  “Always implement things when you actually need them, never when you just foresee that you need them.” - Ron Jeffries
  • 41. YAGNI vs. ADUF  YAGNI tells us to avoid doing what we are not sure we will need.  ADUF tells us: ◦ Define the things you are sure you will need in any case. ◦ Prepare for the things that you may need in the future (adaptability). ◦ NIAGNI: “No, I am gonna need it!”
  • 42. Conclusions  Software systems must evolve over time.  This evolution should be planned and supported trough Adaptable Software Designs.  Domain Modeling: Identify the entities and relationships that form the “closed” part of the design.  Framework Design: Design a framework that represents the model and add mechanisms for extensibility, making it “open”.
  • 43. Related Work  Software Engineering Institute: ◦ Software Product Lines  Alistair Cockburn: ◦ Walking Skeleton ◦ Incremental Rearchitecture  Neal Ford: ◦ Emergent Design ◦ Evolutionary Architecture  Simon Brown: ◦ Just Enough Design Up Front
  • 44. Adaptability & Evolution “It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change.” Charles Darwin