Slide 1

Slide 1 text

Namegames Cracking the hardest problems in computer science (seriously) Andrew Hao @andrewhao

Slide 2

Slide 2 text

hi!

Slide 3

Slide 3 text

“There are two hard things in computer science:
 
 naming, cache invalidation, and off-by-one errors”

Slide 4

Slide 4 text

naming?

Slide 5

Slide 5 text

(good) naming = readability = ⚒ high maintainability

Slide 6

Slide 6 text

semiotics the study of signs and symbols

Slide 7

Slide 7 text

“rose”

Slide 8

Slide 8 text

Signifier “rose” Signified flower

Slide 9

Slide 9 text

love passion romance connotation

Slide 10

Slide 10 text

Signifier “rose” Signified love, passion, romance

Slide 11

Slide 11 text

Signifier “rose” Signified ??? Non-Western contexts?

Slide 12

Slide 12 text

cultural contexts shape meaning

Slide 13

Slide 13 text

software semiotics

Slide 14

Slide 14 text

Signifier User Account Signified Registered site visitor Personal preferences

Slide 15

Slide 15 text

cultural contexts shape meaning

Slide 16

Slide 16 text

business contexts shape meaning

Slide 17

Slide 17 text

Signifier User Account Signified Inbound visitor Email preferences Marketing context

Slide 18

Slide 18 text

Signifier User Account Signified Credit card owner Credit card information Payment context

Slide 19

Slide 19 text

Each business group has its own concepts vocabulary process(es) assumptions goals

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

The invisible boundaries of culture & language

Slide 23

Slide 23 text

We’re speaking different languages!

Slide 24

Slide 24 text

Domain-driven naming

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Build a glossary

Slide 30

Slide 30 text

A Glossary is a list of terms and definitions as thought about by the business

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

It is built collaboratively through conversation, and continually updated

Slide 33

Slide 33 text

Pay down software name debt

Slide 34

Slide 34 text

Make a commitment to rename and refactor your systems according to your new language

Slide 35

Slide 35 text

Build boundaries

Slide 36

Slide 36 text

Build a software boundary (Bounded Context) around each business unit (Subdomain)

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Concepts & names can be precisely stated and free to evolve

Slide 39

Slide 39 text

Getting to Alignment Business ↔ Domain Language ↔ Software

Slide 40

Slide 40 text

A perfectly decent idea for naming

Slide 41

Slide 41 text

Prefer Domain-Specific names over Flexibly Generic ones

Slide 42

Slide 42 text

It’s not a… It’s a… AppointmentList Calendar Area SalesRegion Business Restaurant InvoiceManager BillingFlow

Slide 43

Slide 43 text

How to manage change

Slide 44

Slide 44 text

change: destroyer of systems

Slide 45

Slide 45 text

the business pivots Old concepts need to be supported, but are no longer currently applicable. Draft up a plan to deprecate old classes, modules, concepts.

Slide 46

Slide 46 text

another team joins the fray Not everyone has the same conceptual model; drift occurs in naming and concepts Consistently talk about naming in architecture meetings and code reviews

Slide 47

Slide 47 text

an employee leaves She knows things about the system nobody else does Anticipate her departure and collaboratively update the glossary & other documentation

Slide 48

Slide 48 text

In summary

Slide 49

Slide 49 text

Applying semiotics to software Meaning in software systems is constructed through a business- cultural lens Therefore: view your system as a federation of cultures. Develop an independent, documented vocabulary for each business context.

Slide 50

Slide 50 text

Align software to the business Clean systems map directly to business contexts Therefore: Update systems to cleanly use domain language. Modularize systems to independently operate in each business unit.

Slide 51

Slide 51 text

Proactively manage change Change threatens to topple systems by introducing ambiguity Therefore: develop practices of updating documentation, sharing information and continually having conversations

Slide 52

Slide 52 text

The summary of the summary

Slide 53

Slide 53 text

See cultural boundaries Write it down Talk to business experts Change the code