Slide 1

Slide 1 text

Starring With Directed by as Written by

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

!

Slide 4

Slide 4 text

@hschwentner

Slide 5

Slide 5 text

Foto: Rameessos/Wikipedia

Slide 6

Slide 6 text

@hschwentner Spark a fire ! Tell a story " Paint a picture #

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

!

Slide 9

Slide 9 text

!

Slide 10

Slide 10 text

Painting a picture "

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

!"# Kolleg:in gesucht (Deutschlandweit)

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Story Time

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

@hschwentner Do I get a car for this?

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Monolease

Slide 25

Slide 25 text

@hschwentner To split the Monolith we first have to put it aside

Slide 26

Slide 26 text

thinking about business => thinking about technology to

Slide 27

Slide 27 text

customer tells wish for 1 salesperson signs to gives for contract 3 risk manager contract passes on to 4 contract votes checks calculates 5 6 7 calculates to 8 2 car credit rating installment car resale value contract

Slide 28

Slide 28 text

@hschwentner Explained

Slide 29

Slide 29 text

Collaborative Modeling

Slide 30

Slide 30 text

Domain Expert Developer

Slide 31

Slide 31 text

Knowledge crunching

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Collaborative Modeling User Story Mapping

Slide 34

Slide 34 text

@hschwentner Domain Storytelling = Pictographic Language + Workshop Format

Slide 35

Slide 35 text

@hschwentner The Workshop Format

Slide 36

Slide 36 text

@hschwentner Bring together the right people and let them tell a story

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

" " Storyteller Listeners

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

@hschwentner HANDS OVER RISK MANAGER SALESPERSON TO CONTRACT PASSES ON “The salesperson passes on the contract to the risk manager”

Slide 43

Slide 43 text

Active Listening

Slide 44

Slide 44 text

CONCRETE STORIES VS. ABSTRACT PROCESSES

Slide 45

Slide 45 text

@hschwentner The Pictographic Language

Slide 46

Slide 46 text

@hschwentner actor work object activity 5 sequence number

Slide 47

Slide 47 text

@hschwentner risk manager contract votes

Slide 48

Slide 48 text

@hschwentner CALCULATES GIVES INSTALLMENT CAR

Slide 49

Slide 49 text

@hschwentner CONTRACT CONTRACT PASSES ON SIGNS

Slide 50

Slide 50 text

@hschwentner person group IT system

Slide 51

Slide 51 text

ACTORS ONCE/ WORK OBJECTS SEVERAL TIMES SIGNS 4 FILLS OUT 5 CUSTOMER CONTRACT CONTRACT

Slide 52

Slide 52 text

@hschwentner ßDraw here Leave some empty space there à Annotations, variations, and purpose Precondi?ons, assump?ons, and triggers Name of the Domain Story

Slide 53

Slide 53 text

PICTOGRAPHIC LANGUAGE – NO IF/SWITCH/OR actor work object activity 5 sequence number

Slide 54

Slide 54 text

Scenario-based modeling

Slide 55

Slide 55 text

Scenarios Car Leasing – The Happy Path Car Leasing – Contract is too risky Car Leasing – Customer can’t afford installment

Slide 56

Slide 56 text

@hschwentner Scope

Slide 57

Slide 57 text

Scope Factors

Slide 58

Slide 58 text

@hschwentner Granularity Point in time Domain Purity

Slide 59

Slide 59 text

@hschwentner Granularity fine- grained coarse- grained x x x x x x x x x x x x x x x x x x

Slide 60

Slide 60 text

@hschwentner A Day at the Beach ! Sea Level " Kite Level ☁ Cloud Level $ Fish Level % Clam Level Foto: Dennis Hamilton/flickr/CC BY 2.0 Alistair Cockburn

Slide 61

Slide 61 text

@hschwentner Point in Time as-is to-be t

Slide 62

Slide 62 text

@hschwentner Point in Time now optimized t with new system

Slide 63

Slide 63 text

@hschwentner Domain Purity pure digitalized

Slide 64

Slide 64 text

@hschwentner Excercise

Slide 65

Slide 65 text

@hschwentner Tell domain story: - “Travel by train” - Coarse-grained - All together Exercise

Slide 66

Slide 66 text

@hschwentner Tools

Slide 67

Slide 67 text

PowerPoint Whiteboard Kit (www.domainstorytelling.org)

Slide 68

Slide 68 text

@hschwentner https://egon.io

Slide 69

Slide 69 text

PowerPoint Whiteboard Kit (www.domainstorytelling.org)

Slide 70

Slide 70 text

Whiteboard Kit (www.domainstorytelling.org)

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

@hschwentner

Slide 75

Slide 75 text

@hschwentner Modes

Slide 76

Slide 76 text

Moderated

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

Co-op

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

@hschwentner Tell domain story: - “Going to the movies” - Coarse-grained - In groups Exercise

Slide 82

Slide 82 text

@hschwentner Purposes

Slide 83

Slide 83 text

@hschwentner draw boundaries learn language work on requirements implement domain model find shadow IT …

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

@hschwentner Learning Domain Language

Slide 86

Slide 86 text

CUSTOMER TELLS WISH FOR 1 SALESPERSON SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VOTES CHECKS CALCULATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT INSTALLMENT: THE MONTHLY PAYMENT OF THE CUSTOMER

Slide 87

Slide 87 text

@hschwentner Drawing Boundaries

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

Bundesarchiv, Bild 173-1282 / Helmut J. Wolf / CC-BY-SA 3.0

Slide 90

Slide 90 text

@hschwentner Scope: coarse-grained to-be (i.e. optimized) pure

Slide 91

Slide 91 text

Which activities belong together (from an actor’s perspective)?

Slide 92

Slide 92 text

CUSTOMER TELLS WISH FOR 1 SALESPERSON SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VO TES CHECKS CALCU LATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT SALES RISK ASSESSMENT

Slide 93

Slide 93 text

CUSTOMER TELLS WISH FOR 1 SALESPERSON SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VO TES CHECKS CALCU LATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT SALES Group the sentences • Boundary around activites and work objects • Keep actors outside boundaries Give a name to the group RISK ASSESSMENT

Slide 94

Slide 94 text

CUSTOMER TELLS WISH FOR 1 SALESPERSON SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VO TES CHECKS CALCU LATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT SALES RISK ASSESSMENT

Slide 95

Slide 95 text

SALES RISK ASSESSMENT

Slide 96

Slide 96 text

@hschwentner Naming Subdomains Express what is done Verbs turned into nouns Often: -ing-form Anti-pattern: name of work object as name for subdomain

Slide 97

Slide 97 text

@hschwentner Naming Subdomains— Examples Price calculation Risk assess- ment Maneuver planning Customer Car Price Payment Car inspection

Slide 98

Slide 98 text

Indicators: 1) Actor produces result on their own 2) One-way informa

Slide 99

Slide 99 text

@hschwentner Draw Boundaries: - “Traveling by train” - All together Exercise

Slide 100

Slide 100 text

@hschwentner Draw Boundaries: - “Going to the movies” - In groups Exercise

Slide 101

Slide 101 text

@hschwentner From Coarse-Grained to Fine-Grained

Slide 102

Slide 102 text

CUSTOMER TELLS WISH FOR 1 SALESPERSON SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VO TES CHECKS CALCU LATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT SALES RISK ASSESSMENT

Slide 103

Slide 103 text

CUSTOMER TELLS WISH FOR 1 SALESPERSON SIGNS TO GIVES FOR CONTRACT 3 CALCU- LATES TO 8 2 CAR INSTALLMENT CAR CONTRACT SALES salesperson fills out 1 contract car model w ith price and

Slide 104

Slide 104 text

salesperson fills out 1 2 interest from contract price car model calculates 3 offers installment signs w ith and contract for price and customer contract 3

Slide 105

Slide 105 text

@hschwentner Tell domain story: - “Validate train ticket” - Fine-grained - All together Exercise

Slide 106

Slide 106 text

@hschwentner Tell domain story: - “Selling movie tickets” - Fine-grained, pure, as-is - In groups Exercise

Slide 107

Slide 107 text

@hschwentner Working with Requirements

Slide 108

Slide 108 text

@hschwentner From Domain Story to User Story

Slide 109

Slide 109 text

SALESPERSON CUSTOMER TELLS WISH FOR 1 SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VOTES CHECKS CALCULATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT TELL WISH FOR CAR CALCULATE INSTALLMENT

Slide 110

Slide 110 text

SALESPERSON CUSTOMER TELLS WISH FOR 1 SIGNS TO GIVES FOR CONTRACT 3 RISK MANAGER CONTRACT PASSES ON TO 4 CONTRACT VOTES CHECKS CALCULATES 5 6 7 CALCU- LATES TO 8 2 CAR CREDIT RATING INSTALLMENT CAR RESALE VALUE CONTRACT AS CUSTOMER I WANT TO TELL WHAT KIND OF CAR I NEED SO THAT THE CAR IS NOT TOO EXPENSIVE AS SALESPERSON I WANT TO CALCULATE THE CONTRACT SO THAT I CAN FULFILL MY CLIENT‘S WISH

Slide 111

Slide 111 text

@hschwentner From Domain Story to User Story Map

Slide 112

Slide 112 text

@hschwentner Coarse-Grained Domain Story as Backbone for User Story Map

Slide 113

Slide 113 text

No content

Slide 114

Slide 114 text

@hschwentner TELL WISH FOR CAR CALCULATE INSTALLMENT SIGN CONTRACT PASS ON CONTRACT

Slide 115

Slide 115 text

@hschwentner WISH CAR CALCULATE INSTALLMENT SIGN CONTRACT PASS O CONTRA CALCULATE INSTALLMENT FOR NEW CUSTOMER CALCULATE INSTALLMENT FOR EXISTING CUSTOMER

Slide 116

Slide 116 text

@hschwentner Write user stories: - “Selling movie tickets” - In groups Exercise

Slide 117

Slide 117 text

@hschwentner Modeling in Code

Slide 118

Slide 118 text

salesperson fills out 1 2 interest from contract price car model calculates 3 offers installment signs w ith and contract for price and customer contract 3

Slide 119

Slide 119 text

@hschwentner How do we design a program for that?

Slide 120

Slide 120 text

No content

Slide 121

Slide 121 text

@hschwentner #dddesign

Slide 122

Slide 122 text

-DRIVEN DESIGN

Slide 123

Slide 123 text

Software Domain

Slide 124

Slide 124 text

No content

Slide 125

Slide 125 text

No content

Slide 126

Slide 126 text

No content

Slide 127

Slide 127 text

@hschwentner From Domain Story to Code

Slide 128

Slide 128 text

«Entity» Contract fillOut(:CarModel, :Price) calculateInstallment(:Interest) salesperson fills out 1 2 interest from contract price car model calculates 3 offers installment signs w ith and contract for price and customer contract 3 sign()

Slide 129

Slide 129 text

«En>ty» Contract fillOut(:CarModel, :Price) calculateInstallment(:Interest) sign() «Value Object» CarModel «Value Object» Price «Value Object» Interest

Slide 130

Slide 130 text

class Contract { public Contract(CarModel carModel, Amount price) //... public void calculateInstallment(Interest interest) //... public void sign(SignDate date) //... }

Slide 131

Slide 131 text

import org.jmolecules.annotations.ddd.Entity; @Entity class Contract { public Contract(CarModel carModel, Amount price) //... public void calculateInstallment(Interest interest) //... public void sign(SignDate date) //... }

Slide 132

Slide 132 text

import org.jmolecules.annotations.ddd.Entity; @Entity class Contract { public Contract(CarModel carModel, Amount price) //... public void calculateInstallment(Interest interest) //... public void sign(SignDate date) //... } record CarModel(String name){}

Slide 133

Slide 133 text

import org.jmolecules.annotations.ddd.*; @Entity class Contract { public Contract(CarModel carModel, Amount price) //... public void calculateInstallment(Interest interest) //... public void sign(SignDate date) //... } @ValueObject record CarModel(String name){}

Slide 134

Slide 134 text

@Entity class Contract { public Contract(CarModel carModel, Amount price) //... public void calculateInstallment(Interest interest) //... public void sign(SignDate date) //... } @ValueObject record CarModel(String name){} @ValueObject record Amount(int cents, Currency currency){} @ValueObject enum Currency{ EUR, GBP, USD }

Slide 135

Slide 135 text

public void sign(SignDate date) //... } @ValueObject record CarModel(String name){} @ValueObject record Amount(int cents, Currency currency){} @ValueObject enum Currency{ EUR, GBP, USD } // ...

Slide 136

Slide 136 text

Object orientation

Slide 137

Slide 137 text

LeasingNinja https://leasingninja.io

Slide 138

Slide 138 text

@hschwentner LeasingNinja.io

Slide 139

Slide 139 text

@hschwentner Derive Domain Model: - “Traveling by train” - From fine-grained stories - All together Exercise

Slide 140

Slide 140 text

@hschwentner Derive Domain Model: - “Going to the movies” - From fine-grained stories - In groups Exercise

Slide 141

Slide 141 text

@hschwentner Cutting the Monolith

Slide 142

Slide 142 text

@hschwentner Brownfield

Slide 143

Slide 143 text

@hschwentner How to split the monolith

Slide 144

Slide 144 text

1) How should it be? 2) How is it? 3) How to move the “is” to the “ideal”? RISK MANAGE- MENT SALES

Slide 145

Slide 145 text

1) How should it be? 1) Domain Re-Discovery 2) “ideal” context map 2) How is it? 1) Architecture Analysis 2) As-is context map 3) How to move the “is” to the “ideal”? 1) Compare 2) Create List of Refactorings 4) Do the move 1) Extract a suppor

Slide 146

Slide 146 text

old old old old new new new new “just flip the lever” 1 2 3 4 5 a.k.a. big bang replacement

Slide 147

Slide 147 text

old old old new new new new 2 3 4 5 old 1

Slide 148

Slide 148 text

Strangler Fig Application

Slide 149

Slide 149 text

Strangler Fig Application

Slide 150

Slide 150 text

Lesson: is better than Strangler Fig Application Big Bang Replacement

Slide 151

Slide 151 text

<> Contract sign() SALES RISK ASSESSMENT <> Contract sign() vote() … BIG BALL OF MUD <> Contract vote()

Slide 152

Slide 152 text

Domain-Driven Refactorings • Strategic • Socio-Technical • Tactical (Against Model Anemia) • Tactical (Against Big Ball of Mud)

Slide 153

Slide 153 text

Domain-Driven Refactorings • Strategic • Carve Out Bounded Context • Socio-Technical • Form Cross-Functional Team • Tactical (Against Model Anemia) • Tactical (Against Big Ball of Mud) • Extract Specialized Entity • Extract Specialized Data Model

Slide 154

Slide 154 text

Read on at: https://hschwentner.io/domain-driven-refactorings

Slide 155

Slide 155 text

No content

Slide 156

Slide 156 text

@hschwentner Consulting

Slide 157

Slide 157 text

No content

Slide 158

Slide 158 text

@hschwentner Conclusion

Slide 159

Slide 159 text

@hschwentner Further Reading

Slide 160

Slide 160 text

@hschwentner https://domainstorytelling.org

Slide 161

Slide 161 text

Get it at: https://hschwentner.io

Slide 162

Slide 162 text

@hschwentner LeasingNinja.io

Slide 163

Slide 163 text

May 6th-8th 2024 Vienna, Austria The Collaborative Modeling Unconference comocamp.org Event Storming User Story Mapping Event Modeling Impact Mapping Domain Storytelling Storystorming Context Mapping Example Mapping etc.

Slide 164

Slide 164 text

No content

Slide 165

Slide 165 text

No content

Slide 166

Slide 166 text

@hschwentner

Slide 167

Slide 167 text

No content

Slide 168

Slide 168 text

No content

Slide 169

Slide 169 text

Bibliography Baas-Schwegler, Kenny and João Rosa (eds.). Visual Collaboration Tools. Self-published, Leanpub, last updated August 7, 2020. Beck, Kent et al. Manifesto for Agile Software Development. 2001. Brandolini, Alberto. Introducing EventStorming. Self-published, Leanpub, last updated February 12, 2021. Conway, Melvin E. “How Do Committees Invent?” Datamation 14, no. 5 (April 1968): 28–31. Evans, Eric. Domain-Driven Design: Tackling Complexity in the Heart of Software. Boston: Addison-Wesley, 2004. Foote, Brian and Joseph Yoder. “Big Ball of Mud.” PLoP ’97, Monticello, IL, September 1997. Fowler, Martin. “Strangler Fig Application.” Bliki, June 29, 2004. Hofer, Stefan and Henning Schwentner. Domain Storytelling: a Collaborative, Visual, and Agile Way to Develop Domain- Driven Software. Boston: Addison-Wesley, 2022. Patton, Jeff. User Story Mapping: Discover the Whole Story, Build the Right Product. Sebastopol, CA: O’Reilly, 2014.

Slide 170

Slide 170 text

No content

Slide 171

Slide 171 text

Henning Schwentner ⌂ https://hschwentner.io @hschwentner [email protected] Kolleg:in gesucht (Deutschlandweit)

Slide 172

Slide 172 text

@hschwentner Appendix

Slide 173

Slide 173 text

@hschwentner What about Event Storming?

Slide 174

Slide 174 text

No content

Slide 175

Slide 175 text

No content

Slide 176

Slide 176 text

No content