SlideShare a Scribd company logo
1 of 38
Download to read offline
Evolutionary
Design
Adrian Bolboacă
Programmer, trainer, coach
blog.adrianbolboaca.ro
Aythor of the Coderetreat Book
https://leanpub.com/coderetreat
Why this talk?
● Continuously improve our understanding of the world
● Push the bar of software development
● Develop living systems, rather than rigid projects
● Evolve rather than change
● Research new ways of developing software
Disclaimer
● All ideas presented are in evolution (or in progress)
● This is not a basic talk
● I love philosophy and abstract thinking
● Please ask questions whenever you like
What I learned to get
Evolutionary Design
● Unit Testing
● Design Patterns, and how to use them
● The Four Elements of Simple Design
● Pairing
● Team collaboration
● Test Driven Design (TDD)
● TDD Schools: Chicago, London, DDD, etc
● Behavior Driven Development
● Business Analysis
● Domain Driven Design
● Automated acceptance testing
● Exploratory Testing
● … and much more
Contents
1) Evolutionary Design Defnition
2) Evolution
3) Simplicity
4) Focus on problem, not solution
5) Theory of Centers
6) Symmathesy
7) Solution Navigation
8) Transformations
1) Evolutionary Design
Evolutionary = heritable characteristics over
successive generations
Design = building useful objects for specifc
needs
So: how to build objects that continuously
change, but keep its existing functions intact
1) Evolutionary Design
“The art of growing a system by observing its
natural traits and then normalizing, optimizing
and maximizing its growth”
Adrian Bolboaca
Why Evolutionary
Design?
● Build systems that are resilient to change
● Adapt your pace to the business needs
● Manage growing complexity
a. Normalizing Growth
● Observe irregular developments
● Refactor system’s growth to normalize it
● Balance system’s growth
● Setup practices and guidelines
● Create standards of growth
b. Optimize Growth
● Choose a growth objective
● You cannot optimize for everything
● Compromise
● Focus on business needs
● Observe, pro-act, re-act
c. Maximizing Growth
● Make the most out of each optimization
● Understand when it’s the “fertile” moment
● Observe patterns like Low Coupling,
High Cohesion, Structural Duplication, etc
● Use coherent strategies
2) Evolution
Behavior Slicing
● Identify your evolution focus
● Look at Outputs
● Find corresponding inputs
● Organize from simple to complex
Many thanks to Alex Bolboaca
3) Simplicity
The art of fnding the simplest options
● Evolve to the simplest solution you can
● Remove rather than add items to the system
● Use The 4 Elements of Simple Design
● Use Behavior Slicing
● The simplest solutions are natural ones
4) Focus on problem,
not on solution
Test After – solution focus
Design Code Test→ →
Test First Programming – solution focus
Design Test Code→ →
Test Driven Design – problem focus
Test Code Design→ → → Solution evolves
5) Theory of Centers
A bottom-up approach, which places users
of buildings as builders of their environments
through the process of co-creating a
common ground with the collective consensus
of a “shared pattern language”; to give users
better control over the spaces they dwell in.
from Christopher Alexander
https://nourdiab.wordpress.com/2011/02/23/the-theories-of-christo
pher-alexander
5) Theory of Centers
● Observe system’s behavior
● Find similarities and particularities in
decentralized systems
● Identify hubs around which systems
occur in living structures
from Christopher Alexander
Many thanks to Emmanuel Gaillot
6) Symmathesy
Symmathesy = Mutual Learning in Living
Systems
A word in progress
from Nora Bateson
https://norabateson.wordpress.com/2015/11/03/symmathesy-a-word-in-progress
Many thanks to Jessica Kerr
6) Symmathesy
For Evolutionary Design
● Feedback is a learning mechanism
● The designer uses techniques to learn
from the software system
● Identify patterns and heuristics (similarities,
duplication, coherence, etc)
● Maybe in the future the system might be
able to learn from the designer
7) Solution Navigation
Navigation-related structural change in the
hippocampi of taxi drivers.
“The role of the hippocampus is to facilitate
spatial memory, in the form of navigation”
https://www.tutor2u.net/psychology/reference/maguire-2000
Many thanks to https://twitter.com/sleepyfox
7) Solution Navigation
● Practice to identify possible solutions
(Solution Seeker
http://blog.adrianbolboaca.ro/2014/02/pair-programming-game-solution-seeker )
● Pair with experienced navigators
● Extend your comfort zone for heuristics
● Work on design studies
● Read a lot of code
● Choose possible solutions based on
objective factors
● Feed your brain with practice
8) Transformations
During an evolution, transformations are the
essence:
● Transformation Priority Premise
● Levels of Abstraction
● Levels of Coupling
● Inductive vs Deductive
● ...
8) Transformations
But how do we have transformations?
We put pressure on existing design
Tests are pressure on existing design. We
need to look at the patterns and evolve the
system organically
Tests are not the only type of pressure
8) Transformations
Transformation Priority Premise
“As the tests get more specifc, the code gets
more generic.”
from Robert C Martin
https://8thlight.com/blog/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
8) Transformations
Transformation Priority Premise
● ({}–>nil) no code at all->code that employs nil
● (nil->constant)
● (constant->constant+) a simple constant to a more complex constant
● (constant->scalar) replacing a constant with a variable or an argument
● (statement->statements) adding more unconditional statements.
● (unconditional->if) splitting the execution path
● (scalar->array)
● (array->container)
● (statement->recursion)
● (if->while)
● (expression->function) replacing an expression with a function or algorithm
● (variable->assignment) replacing the value of a variable.
8) Transformations
Levels of abstraction
Depending on which abstraction level you want to
evolve the system, you might use diferent heuristics
Use encapsulation to abstract communication
between levels
● complex systems
● system
● subsystem
● module
● (optional) namespace / package
● interface / superclass
● class / enum / struct
● feld / constant
● variable
● value
8) Transformations
Levels of Coupling
Depending on the coupling your system can evolve
naturally more or less
● Conventions
● Transient
● Events
● Composition
● Inheritance
● Class scope
● Function scope
Inductive vs Deductive
Inductive
● Start from the atomic part and refactor++.
● Use refactoring heuristics to normalize
growth
● No design up-front
Deductive
● Start from scafolding
● Use heuristics to optimize growth
● More design up-front
Inductive vs Deductive
Inductive (usually)
● TDD as if you Meant It
● Bottom-up
● Take few decisions at a time
● Middle-top (DDD)
Deductive (usually)
● Walking Skeleton
● Outside-in
● Take structural decisions
● Middle-bottom (DDD)
Inductive vs Deductive
I had a very long talk in Paris Oct 2017
about Inductive vs Deductive Evolutionary
Design
Read at
https://medium.com/@cyrillemartraire/adrian-bolboaca-on-evoluti
onary-design-inductive-vs-deductive-approaches-a7cead4bdd20
Thanks to Cyrille Martraire for the write-up
Selection Pressure
● Pressure = business metrics
● Use business tests to grow your system
● Similar with TDD as if you Meant It, but with
business focus
Many thanks to Julian Ghionoiu
Code cast
http://blog.adrianbolboaca.ro/2018/01/remotepairprogramming-ep-005
-evolutionary-design-selection-pressure
Recap
1) Evolutionary Design Defnition
2) Evolution
3) Simplicity
4) Focus on problem, not solution
5) Theory of Centers
6) Symmathesy
7) Solution Navigation
8) Transformations
What’s Next for me?
Evolve the topic
Write more articles
Publish more code casts
Write a book on Evolutionary Design
What’s Next for you?
Let’s talk about this topic
(Continuously Evolving) series of articles
and code casts
http://blog.adrianbolboaca.ro/evolutionary-design
Remote Pair with me
http://blog.adrianbolboaca.ro
Share your experiences
https://twitter.com/adibolb
About me
When not thinking about philosophical
topics I still:
Write software
Help companies and teams
Mentor, train and coach
Workshop
Join Evolutionary Design Workshop
25-26 June in Paris
https://mozaicworks.com/public-trainings-and-workshops/evolutionary-de
sign-workshop
Mozaic Works Design
School
Join the Mozaic Works Design School
How? Contact me!
Contact me
Adrian Bolboacă
Programmer, trainer, coach
adrian.bolboaca@mozaicworks.com
@adibolb

More Related Content

Similar to Evolutionary Design - NewCrafts Paris 18 May 2018

Contemporary Software Engineering Practices Together With Enterprise
Contemporary Software Engineering Practices Together With EnterpriseContemporary Software Engineering Practices Together With Enterprise
Contemporary Software Engineering Practices Together With Enterprise
Kenan Sevindik
 
Introduction To Agile Refresh Savannah July20 2010 V1 4
Introduction To Agile Refresh Savannah July20 2010 V1 4Introduction To Agile Refresh Savannah July20 2010 V1 4
Introduction To Agile Refresh Savannah July20 2010 V1 4
Marvin Heery
 

Similar to Evolutionary Design - NewCrafts Paris 18 May 2018 (20)

Managing software projects & teams effectively
Managing software projects & teams effectivelyManaging software projects & teams effectively
Managing software projects & teams effectively
 
Agile Development unleashed
Agile Development unleashedAgile Development unleashed
Agile Development unleashed
 
What is xp
What is xpWhat is xp
What is xp
 
Agile Software Development
Agile Software DevelopmentAgile Software Development
Agile Software Development
 
Better java with design
Better java with designBetter java with design
Better java with design
 
Introduction to Agile Software Development Process
Introduction to Agile Software Development ProcessIntroduction to Agile Software Development Process
Introduction to Agile Software Development Process
 
Contemporary Software Engineering Practices Together With Enterprise
Contemporary Software Engineering Practices Together With EnterpriseContemporary Software Engineering Practices Together With Enterprise
Contemporary Software Engineering Practices Together With Enterprise
 
It's XP, Stupid
It's XP, StupidIt's XP, Stupid
It's XP, Stupid
 
TDD - Seriously, try it! (updated '22)
TDD - Seriously, try it! (updated '22)TDD - Seriously, try it! (updated '22)
TDD - Seriously, try it! (updated '22)
 
Agile
AgileAgile
Agile
 
TDD - Seriously, try it! - Trójmiasto Java User Group (17th May '23)
TDD - Seriously, try it! - Trójmiasto Java User Group (17th May '23)TDD - Seriously, try it! - Trójmiasto Java User Group (17th May '23)
TDD - Seriously, try it! - Trójmiasto Java User Group (17th May '23)
 
TDD - Seriously, try it! - Trjjmiasto JUG (17th May '23)
TDD - Seriously, try it! - Trjjmiasto JUG (17th May '23)TDD - Seriously, try it! - Trjjmiasto JUG (17th May '23)
TDD - Seriously, try it! - Trjjmiasto JUG (17th May '23)
 
Rouan's design principles
Rouan's design principlesRouan's design principles
Rouan's design principles
 
Frug'Agile 2021: Agile as doctrine (and that's a good thing)
Frug'Agile 2021: Agile as doctrine (and that's a good thing)Frug'Agile 2021: Agile as doctrine (and that's a good thing)
Frug'Agile 2021: Agile as doctrine (and that's a good thing)
 
Usable Software Design
Usable Software DesignUsable Software Design
Usable Software Design
 
Use Design Principle to Improve code quality
Use Design Principle to Improve code qualityUse Design Principle to Improve code quality
Use Design Principle to Improve code quality
 
TDD - Seriously, try it! - Bucarest Tech Week
TDD - Seriously, try it! - Bucarest Tech WeekTDD - Seriously, try it! - Bucarest Tech Week
TDD - Seriously, try it! - Bucarest Tech Week
 
Introduction To Agile Refresh Savannah July20 2010 V1 4
Introduction To Agile Refresh Savannah July20 2010 V1 4Introduction To Agile Refresh Savannah July20 2010 V1 4
Introduction To Agile Refresh Savannah July20 2010 V1 4
 
Open agile is free and open source community agile-
Open agile  is free and open source community agile-Open agile  is free and open source community agile-
Open agile is free and open source community agile-
 
Software Development Methodologies
Software Development Methodologies Software Development Methodologies
Software Development Methodologies
 

More from Adi Bolboaca

Coderetreat @AgileFinland Helsinki 2014 11 13
Coderetreat @AgileFinland Helsinki 2014 11 13Coderetreat @AgileFinland Helsinki 2014 11 13
Coderetreat @AgileFinland Helsinki 2014 11 13
Adi Bolboaca
 
Coderetreat @AgileFinland Tampere 2014 11 12
Coderetreat @AgileFinland Tampere 2014 11 12Coderetreat @AgileFinland Tampere 2014 11 12
Coderetreat @AgileFinland Tampere 2014 11 12
Adi Bolboaca
 
TDD Mini Workshop @ Bucharest JUG 2014 04 24
TDD Mini Workshop @ Bucharest JUG 2014 04 24TDD Mini Workshop @ Bucharest JUG 2014 04 24
TDD Mini Workshop @ Bucharest JUG 2014 04 24
Adi Bolboaca
 
Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013
Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013
Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013
Adi Bolboaca
 
Coderetreat @AgileWorks Bucharest 2012 07 06
Coderetreat @AgileWorks Bucharest 2012 07 06 Coderetreat @AgileWorks Bucharest 2012 07 06
Coderetreat @AgileWorks Bucharest 2012 07 06
Adi Bolboaca
 
Legacy Coderetreat @Budapest 2013 02 16
Legacy Coderetreat @Budapest 2013 02 16Legacy Coderetreat @Budapest 2013 02 16
Legacy Coderetreat @Budapest 2013 02 16
Adi Bolboaca
 
Coderetreat @Sofia 2012 10 27
Coderetreat @Sofia 2012 10 27Coderetreat @Sofia 2012 10 27
Coderetreat @Sofia 2012 10 27
Adi Bolboaca
 
Coderetreat @Turku 2012 10 20
Coderetreat @Turku 2012 10 20 Coderetreat @Turku 2012 10 20
Coderetreat @Turku 2012 10 20
Adi Bolboaca
 
Coderetreat @Sibiu 2012 08 18
Coderetreat @Sibiu 2012 08 18Coderetreat @Sibiu 2012 08 18
Coderetreat @Sibiu 2012 08 18
Adi Bolboaca
 
Coderetreat @Vienna 2013 06 08
Coderetreat @Vienna 2013 06 08Coderetreat @Vienna 2013 06 08
Coderetreat @Vienna 2013 06 08
Adi Bolboaca
 

More from Adi Bolboaca (20)

Stop Task Switching
Stop Task SwitchingStop Task Switching
Stop Task Switching
 
Evolutionary Design: Take Only One Decision at a Time
Evolutionary Design: Take Only One Decision at a TimeEvolutionary Design: Take Only One Decision at a Time
Evolutionary Design: Take Only One Decision at a Time
 
Behind Agile Practices
Behind Agile PracticesBehind Agile Practices
Behind Agile Practices
 
Architecture for Disaster Resistant Systems @I TAKE Unconference 29 05 2015
Architecture for Disaster Resistant Systems @I TAKE Unconference 29 05 2015Architecture for Disaster Resistant Systems @I TAKE Unconference 29 05 2015
Architecture for Disaster Resistant Systems @I TAKE Unconference 29 05 2015
 
Coderetreat @AgileFinland Turku 2014 11 15
 Coderetreat @AgileFinland Turku 2014 11 15 Coderetreat @AgileFinland Turku 2014 11 15
Coderetreat @AgileFinland Turku 2014 11 15
 
Coderetreat @AgileFinland Helsinki 2014 11 13
Coderetreat @AgileFinland Helsinki 2014 11 13Coderetreat @AgileFinland Helsinki 2014 11 13
Coderetreat @AgileFinland Helsinki 2014 11 13
 
Coderetreat @AgileFinland Tampere 2014 11 12
Coderetreat @AgileFinland Tampere 2014 11 12Coderetreat @AgileFinland Tampere 2014 11 12
Coderetreat @AgileFinland Tampere 2014 11 12
 
Refactoring Dojo @AgileWorks Bucharest 21 May 2014
Refactoring Dojo @AgileWorks Bucharest 21 May 2014Refactoring Dojo @AgileWorks Bucharest 21 May 2014
Refactoring Dojo @AgileWorks Bucharest 21 May 2014
 
Sherlock Holmes and Pairing @Romanian Testing Conference 2014 05 15
Sherlock Holmes and Pairing @Romanian Testing Conference 2014 05 15Sherlock Holmes and Pairing @Romanian Testing Conference 2014 05 15
Sherlock Holmes and Pairing @Romanian Testing Conference 2014 05 15
 
TDD Mini Workshop @ Bucharest JUG 2014 04 24
TDD Mini Workshop @ Bucharest JUG 2014 04 24TDD Mini Workshop @ Bucharest JUG 2014 04 24
TDD Mini Workshop @ Bucharest JUG 2014 04 24
 
Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013
Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013
Coderetreat Slides on the Global Day of Coderetreat, Bucharest, December 2013
 
Sherlock Holmes and Pairing @Bucharest JUG 2013 11 21
Sherlock Holmes and Pairing @Bucharest JUG 2013 11 21Sherlock Holmes and Pairing @Bucharest JUG 2013 11 21
Sherlock Holmes and Pairing @Bucharest JUG 2013 11 21
 
Sherlock Holmes and Pairing @Wlidcard Conference 2013 09 13
Sherlock Holmes and Pairing @Wlidcard Conference 2013 09 13Sherlock Holmes and Pairing @Wlidcard Conference 2013 09 13
Sherlock Holmes and Pairing @Wlidcard Conference 2013 09 13
 
Code retreat @AgileWorks Bucharest 7 September 2013
Code retreat @AgileWorks Bucharest 7 September 2013Code retreat @AgileWorks Bucharest 7 September 2013
Code retreat @AgileWorks Bucharest 7 September 2013
 
Coderetreat @AgileWorks Bucharest 2012 07 06
Coderetreat @AgileWorks Bucharest 2012 07 06 Coderetreat @AgileWorks Bucharest 2012 07 06
Coderetreat @AgileWorks Bucharest 2012 07 06
 
Legacy Coderetreat @Budapest 2013 02 16
Legacy Coderetreat @Budapest 2013 02 16Legacy Coderetreat @Budapest 2013 02 16
Legacy Coderetreat @Budapest 2013 02 16
 
Coderetreat @Sofia 2012 10 27
Coderetreat @Sofia 2012 10 27Coderetreat @Sofia 2012 10 27
Coderetreat @Sofia 2012 10 27
 
Coderetreat @Turku 2012 10 20
Coderetreat @Turku 2012 10 20 Coderetreat @Turku 2012 10 20
Coderetreat @Turku 2012 10 20
 
Coderetreat @Sibiu 2012 08 18
Coderetreat @Sibiu 2012 08 18Coderetreat @Sibiu 2012 08 18
Coderetreat @Sibiu 2012 08 18
 
Coderetreat @Vienna 2013 06 08
Coderetreat @Vienna 2013 06 08Coderetreat @Vienna 2013 06 08
Coderetreat @Vienna 2013 06 08
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 

Evolutionary Design - NewCrafts Paris 18 May 2018

  • 1. Evolutionary Design Adrian Bolboacă Programmer, trainer, coach blog.adrianbolboaca.ro Aythor of the Coderetreat Book https://leanpub.com/coderetreat
  • 2. Why this talk? ● Continuously improve our understanding of the world ● Push the bar of software development ● Develop living systems, rather than rigid projects ● Evolve rather than change ● Research new ways of developing software
  • 3. Disclaimer ● All ideas presented are in evolution (or in progress) ● This is not a basic talk ● I love philosophy and abstract thinking ● Please ask questions whenever you like
  • 4. What I learned to get Evolutionary Design ● Unit Testing ● Design Patterns, and how to use them ● The Four Elements of Simple Design ● Pairing ● Team collaboration ● Test Driven Design (TDD) ● TDD Schools: Chicago, London, DDD, etc ● Behavior Driven Development ● Business Analysis ● Domain Driven Design ● Automated acceptance testing ● Exploratory Testing ● … and much more
  • 5. Contents 1) Evolutionary Design Defnition 2) Evolution 3) Simplicity 4) Focus on problem, not solution 5) Theory of Centers 6) Symmathesy 7) Solution Navigation 8) Transformations
  • 6. 1) Evolutionary Design Evolutionary = heritable characteristics over successive generations Design = building useful objects for specifc needs So: how to build objects that continuously change, but keep its existing functions intact
  • 7. 1) Evolutionary Design “The art of growing a system by observing its natural traits and then normalizing, optimizing and maximizing its growth” Adrian Bolboaca
  • 8. Why Evolutionary Design? ● Build systems that are resilient to change ● Adapt your pace to the business needs ● Manage growing complexity
  • 9. a. Normalizing Growth ● Observe irregular developments ● Refactor system’s growth to normalize it ● Balance system’s growth ● Setup practices and guidelines ● Create standards of growth
  • 10. b. Optimize Growth ● Choose a growth objective ● You cannot optimize for everything ● Compromise ● Focus on business needs ● Observe, pro-act, re-act
  • 11. c. Maximizing Growth ● Make the most out of each optimization ● Understand when it’s the “fertile” moment ● Observe patterns like Low Coupling, High Cohesion, Structural Duplication, etc ● Use coherent strategies
  • 12.
  • 13. 2) Evolution Behavior Slicing ● Identify your evolution focus ● Look at Outputs ● Find corresponding inputs ● Organize from simple to complex Many thanks to Alex Bolboaca
  • 14. 3) Simplicity The art of fnding the simplest options ● Evolve to the simplest solution you can ● Remove rather than add items to the system ● Use The 4 Elements of Simple Design ● Use Behavior Slicing ● The simplest solutions are natural ones
  • 15. 4) Focus on problem, not on solution Test After – solution focus Design Code Test→ → Test First Programming – solution focus Design Test Code→ → Test Driven Design – problem focus Test Code Design→ → → Solution evolves
  • 16. 5) Theory of Centers A bottom-up approach, which places users of buildings as builders of their environments through the process of co-creating a common ground with the collective consensus of a “shared pattern language”; to give users better control over the spaces they dwell in. from Christopher Alexander https://nourdiab.wordpress.com/2011/02/23/the-theories-of-christo pher-alexander
  • 17. 5) Theory of Centers ● Observe system’s behavior ● Find similarities and particularities in decentralized systems ● Identify hubs around which systems occur in living structures from Christopher Alexander Many thanks to Emmanuel Gaillot
  • 18. 6) Symmathesy Symmathesy = Mutual Learning in Living Systems A word in progress from Nora Bateson https://norabateson.wordpress.com/2015/11/03/symmathesy-a-word-in-progress Many thanks to Jessica Kerr
  • 19. 6) Symmathesy For Evolutionary Design ● Feedback is a learning mechanism ● The designer uses techniques to learn from the software system ● Identify patterns and heuristics (similarities, duplication, coherence, etc) ● Maybe in the future the system might be able to learn from the designer
  • 20. 7) Solution Navigation Navigation-related structural change in the hippocampi of taxi drivers. “The role of the hippocampus is to facilitate spatial memory, in the form of navigation” https://www.tutor2u.net/psychology/reference/maguire-2000 Many thanks to https://twitter.com/sleepyfox
  • 21. 7) Solution Navigation ● Practice to identify possible solutions (Solution Seeker http://blog.adrianbolboaca.ro/2014/02/pair-programming-game-solution-seeker ) ● Pair with experienced navigators ● Extend your comfort zone for heuristics ● Work on design studies ● Read a lot of code ● Choose possible solutions based on objective factors ● Feed your brain with practice
  • 22. 8) Transformations During an evolution, transformations are the essence: ● Transformation Priority Premise ● Levels of Abstraction ● Levels of Coupling ● Inductive vs Deductive ● ...
  • 23. 8) Transformations But how do we have transformations? We put pressure on existing design Tests are pressure on existing design. We need to look at the patterns and evolve the system organically Tests are not the only type of pressure
  • 24. 8) Transformations Transformation Priority Premise “As the tests get more specifc, the code gets more generic.” from Robert C Martin https://8thlight.com/blog/uncle-bob/2013/05/27/TheTransformationPriorityPremise.html
  • 25. 8) Transformations Transformation Priority Premise ● ({}–>nil) no code at all->code that employs nil ● (nil->constant) ● (constant->constant+) a simple constant to a more complex constant ● (constant->scalar) replacing a constant with a variable or an argument ● (statement->statements) adding more unconditional statements. ● (unconditional->if) splitting the execution path ● (scalar->array) ● (array->container) ● (statement->recursion) ● (if->while) ● (expression->function) replacing an expression with a function or algorithm ● (variable->assignment) replacing the value of a variable.
  • 26. 8) Transformations Levels of abstraction Depending on which abstraction level you want to evolve the system, you might use diferent heuristics Use encapsulation to abstract communication between levels ● complex systems ● system ● subsystem ● module ● (optional) namespace / package ● interface / superclass ● class / enum / struct ● feld / constant ● variable ● value
  • 27. 8) Transformations Levels of Coupling Depending on the coupling your system can evolve naturally more or less ● Conventions ● Transient ● Events ● Composition ● Inheritance ● Class scope ● Function scope
  • 28. Inductive vs Deductive Inductive ● Start from the atomic part and refactor++. ● Use refactoring heuristics to normalize growth ● No design up-front Deductive ● Start from scafolding ● Use heuristics to optimize growth ● More design up-front
  • 29. Inductive vs Deductive Inductive (usually) ● TDD as if you Meant It ● Bottom-up ● Take few decisions at a time ● Middle-top (DDD) Deductive (usually) ● Walking Skeleton ● Outside-in ● Take structural decisions ● Middle-bottom (DDD)
  • 30. Inductive vs Deductive I had a very long talk in Paris Oct 2017 about Inductive vs Deductive Evolutionary Design Read at https://medium.com/@cyrillemartraire/adrian-bolboaca-on-evoluti onary-design-inductive-vs-deductive-approaches-a7cead4bdd20 Thanks to Cyrille Martraire for the write-up
  • 31. Selection Pressure ● Pressure = business metrics ● Use business tests to grow your system ● Similar with TDD as if you Meant It, but with business focus Many thanks to Julian Ghionoiu Code cast http://blog.adrianbolboaca.ro/2018/01/remotepairprogramming-ep-005 -evolutionary-design-selection-pressure
  • 32. Recap 1) Evolutionary Design Defnition 2) Evolution 3) Simplicity 4) Focus on problem, not solution 5) Theory of Centers 6) Symmathesy 7) Solution Navigation 8) Transformations
  • 33. What’s Next for me? Evolve the topic Write more articles Publish more code casts Write a book on Evolutionary Design
  • 34. What’s Next for you? Let’s talk about this topic (Continuously Evolving) series of articles and code casts http://blog.adrianbolboaca.ro/evolutionary-design Remote Pair with me http://blog.adrianbolboaca.ro Share your experiences https://twitter.com/adibolb
  • 35. About me When not thinking about philosophical topics I still: Write software Help companies and teams Mentor, train and coach
  • 36. Workshop Join Evolutionary Design Workshop 25-26 June in Paris https://mozaicworks.com/public-trainings-and-workshops/evolutionary-de sign-workshop
  • 37. Mozaic Works Design School Join the Mozaic Works Design School How? Contact me!
  • 38. Contact me Adrian Bolboacă Programmer, trainer, coach adrian.bolboaca@mozaicworks.com @adibolb