Slide 1

Slide 1 text

Modelling Heuristics @mathiasverraes

Slide 2

Slide 2 text

Mathias Verraes Independent Consultant Value Object Comm.V Student of Systems Meddler of Models Labourer of Legacy verraes.net

Slide 3

Slide 3 text

Is modelling a learnable skill?

Slide 4

Slide 4 text

The pain of a wrong abstraction

Slide 5

Slide 5 text

Upfront Model? 1 1 Scott W. Ambler, "Big Modeling Up Front (BMUF) Anti-Pattern", http://www.agilemodeling.com/ essays/bmuf.htm

Slide 6

Slide 6 text

You are always making mental models

Slide 7

Slide 7 text

Analysis model 2 vs Domain model 2 Martin Fowler, 1996, "Analysis Patterns: Reusable Object Models"

Slide 8

Slide 8 text

Heuristic Domain Language

Slide 9

Slide 9 text

Linguistic Relativism Sapir-Whorf Hypothesis 3,4 4 Paul Graham, "Beating the Averages", http://www.paulgraham.com/avg.html 3 Steven Pinker, 1994, "The Language Instinct"

Slide 10

Slide 10 text

Heuristic Find the Nouns Anti-pattern?

Slide 11

Slide 11 text

Heuristic Descriptive vs Influential Properties

Slide 12

Slide 12 text

[ { "licensePlate": "1-ABC-123", "brand": "BMW", "make": "X1", "color": "Aggregate Blue", ..., "location": "40.7127837,-74.0059413" }, ... ]

Slide 13

Slide 13 text

Heuristic Static / Dynamic

Slide 14

Slide 14 text

Heuristic Find the Verbs Commands

Slide 15

Slide 15 text

Verb-based: f = chain( breakTextIntoWords() : [String] groupWordsIntoLines() : [[String]] joinWordsInBrokenLines() : [String] joinBrokenLines() : String ) f("A long paragraph") -> "A long\nparagraph"

Slide 16

Slide 16 text

Noun-based: 7 f = chain( words() : [String] brokenLines() : [[String]] wordJoinedLines() : [String] joinedLines() : String ) f("A long paragraph") -> "A long\nparagraph" 7 Michael Feathers, "A Type Driven Approach to Functional Design", InfoQ

Slide 17

Slide 17 text

Heuristic Find the Sentences Find the Idioms

Slide 18

Slide 18 text

Heuristic Find the Scenarios

Slide 19

Slide 19 text

Given I have a product When I look at the price of a product ... or Given I have a product When I lookup the product in the pricing table ... ?

Slide 20

Slide 20 text

Remember, you are always making mental models

Slide 21

Slide 21 text

As a customer I want to ... Given there is a product When I look at the price of a product ... As a shop owner I want to ... Given I have a product When I lookup the product in the pricing table ...

Slide 22

Slide 22 text

Heuristic Actors and Roles

Slide 23

Slide 23 text

Heuristic The Worker and the Beneficiary

Slide 24

Slide 24 text

When I look at the price of a product ... When I lookup the product in the pricing table ...

Slide 25

Slide 25 text

Heuristic Segregating Reading and Writing

Slide 26

Slide 26 text

Heuristic Being Behaving Becoming Three B's 5 5 Gerald M. Weinberg, 1988, "Rethinking Systems Analysis and Design"

Slide 27

Slide 27 text

The customer sometimes has an email. Missing concept?

Slide 28

Slide 28 text

Heuristic Collaborative Construction6 Execution Tracking aka Planning/Execution/Analysis 6 Cyrille Martraire, "Collaborative Construction by Alberto Brandolini", http:// cyrille.martraire.com/2012/09/collaborative-construction-by-alberto-brandolini/

Slide 29

Slide 29 text

Heuristic Domain Events8 8 http://verraes.net/2014/11/domain-events/

Slide 30

Slide 30 text

Time ->

Slide 31

Slide 31 text

Heuristic Cause & Consequence

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Cause & Consequence Human External system Process Time

Slide 34

Slide 34 text

Heuristic Business Rules Reasons for failure

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Heuristic Consistency Boundary

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Heuristic Entity Inclusion

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Heuristic Temporal Expansion

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Heuristic Temporal Shift

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

Heuristic Invariant Inclusion

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

Heuristic Conceptual Shift

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Heuristic Crossing Streams

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

Heuristic Happy Path / Divergent Path9 9 Mathias Verraes, "Event Storming: on Fake Domains and Happy Paths", http://verraes.net/ 2014/07/event-storming-fake-domains-happy-paths/

Slide 52

Slide 52 text

Formal Informal Aformal

Slide 53

Slide 53 text

Throw Away the Model

Slide 54

Slide 54 text

@mathiasverraes verraes.net Workshops Domain-Driven Design verraes.net/workshops Ghent, Belgium, January 20-22 Newcastle, UK (TBC)