Slide 1

Slide 1 text

Usable Software Design There’s no solution without a problem Johan Martinsson, developer. @JOHAN_ALPS

Slide 2

Slide 2 text

@JOHAN_ALPS Design … ... It’s not just what it looks like and feels like. Design is how it works. https://www.flickr.com/photos/8010717@N02/6216457030 CC BY 2.0

Slide 3

Slide 3 text

Alexandru Bolboaca @JOHAN_ALPS leanpub.com/usablesoftwaredesign

Slide 4

Slide 4 text

We’re all designers @JOHAN_ALPS @MARGAUXLERGO 4 The user of software design is the developer Alexandru Bolboaca

Slide 5

Slide 5 text

It’s not the users fault, it’s the designs fault @JOHAN_ALPS Source : http://www.lsd-mag.com/blog/design-inconfortable/

Slide 6

Slide 6 text

A definition @JOHAN_ALPS Nielson (1994)

Slide 7

Slide 7 text

Identify design problems @JOHAN_ALPS

Slide 8

Slide 8 text

Interviews What was difficult to do in the past weeks? What areas of the code were most difficult to understand When were you afraid that your changes might be wrong? Alexandru Bolboaca @JOHAN_ALPS

Slide 9

Slide 9 text

Usability tests « Needs to be cheap enough that you’ll do it! » Watch someone start a story using your code - Don’t help - Ask them to vocalize @JOHAN_ALPS

Slide 10

Slide 10 text

Code review @JOHAN_ALPS I don’t like the code! Is there a usability problem?

Slide 11

Slide 11 text

Team Agreement 1. Code written to be read 2. Easy to find where to modify 3. Minimal ripple effect 4. Simple AND easy to validate 5. Limited duplication A federating concept

Slide 12

Slide 12 text

Parallels with code @JOHAN_ALPS

Slide 13

Slide 13 text

Incitation @JOHAN_ALPS Push or pull? Push, but where? Push!

Slide 14

Slide 14 text

Incitation @JOHAN_ALPS

Slide 15

Slide 15 text

Consistency @JOHAN_ALPS Source : http://lesmoyensgrands.over-blog.com

Slide 16

Slide 16 text

Consistency @JOHAN_ALPS

Slide 17

Slide 17 text

Local Consistency @JOHAN_ALPS - 1972

Slide 18

Slide 18 text

Local Consistency @JOHAN_ALPS

Slide 19

Slide 19 text

Compatibility @JOHAN_ALPS msPaint Adobe Photoshop

Slide 20

Slide 20 text

Compatibility @JOHAN_ALPS

Slide 21

Slide 21 text

Compatibility @JOHAN_ALPS Listen to your users, don’t obey them

Slide 22

Slide 22 text

TDD and usability TDD ◦ Affirmative @JOHAN_ALPS Trial & error ◦ Exploratory

Slide 23

Slide 23 text

TDD and usability @JOHAN_ALPS Resources.delete() Broadcast() resetCurrent() toggleSelectionMode() Delete() Manager.fire() Navigator.delete() Shot gun surgery. Learn/memorability problem

Slide 24

Slide 24 text

TDD and usability TDD requires cognitive mastery. If we don’t have that, then we have a usability problem @JOHAN_ALPS

Slide 25

Slide 25 text

Readability @JOHAN_ALPS Wikipédia Wikiwand

Slide 26

Slide 26 text

Readability @JOHAN_ALPS

Slide 27

Slide 27 text

Information density @JOHAN_ALPS Cdiscount Google

Slide 28

Slide 28 text

Information density @JOHAN_ALPS One level of abstraction Reveal intent

Slide 29

Slide 29 text

Documentation @JOHAN_ALPS When the design is obvious, documentation is waste

Slide 30

Slide 30 text

@JOHAN_ALPS

Slide 31

Slide 31 text

@JOHAN_ALPS

Slide 32

Slide 32 text

Errors @JOHAN_ALPS

Slide 33

Slide 33 text

Make errors impossible @JOHAN_ALPS Google Agenda

Slide 34

Slide 34 text

Make errors impossible @JOHAN_ALPS // Mandatory parameters in constructor // Type parameters

Slide 35

Slide 35 text

It’s not the users fault, it’s the designs fault @JOHAN_ALPS Source : http://www.lsd-mag.com/blog/design-inconfortable/

Slide 36

Slide 36 text

Make errors impossible Two time instantiation Temporal coupling Coupling without cohesion … @JOHAN_ALPS

Slide 37

Slide 37 text

Fix errors @JOHAN_ALPS

Slide 38

Slide 38 text

Encapsulate primitives Fix errors @JOHAN_ALPS

Slide 39

Slide 39 text

@JOHAN_ALPS github.com/martinsson/BugsZero-Kata

Slide 40

Slide 40 text

Rapid feedback @JOHAN_ALPS Amazon Cdiscount

Slide 41

Slide 41 text

Rapid feedback @JOHAN_ALPS $ npm test Executed 364 of 364 SUCCESS (2.663 secs) TOTAL: 364 SUCCESS

Slide 42

Slide 42 text

Funnel of feedback @JOHAN_ALPS IDE Unit tests CI - tests Code review Dev ..etc

Slide 43

Slide 43 text

Dig deeper @JOHAN_ALPS

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

Conclusion It’s not the users fault à Design You’re not your user à Test Starts with Whyà Federating concept @JOHAN_ALPS BUSINESS NEEDS USABLE CODE