Slide 1

Slide 1 text

@TheQuinnGil https://QuinnGil.com µObjects

Slide 2

Slide 2 text

@TheQuinnGil https://QuinnGil.com Who Am I? ● Quinn Gil ○ @TheQuinnGil ○ https://QuinnGil.com ● Professionally programming 20 years ● Passion for helping others write better ● Coding is my hobby µObjects

Slide 3

Slide 3 text

@TheQuinnGil https://QuinnGil.com Single Responsibility µObjects to the extreme µObjects

Slide 4

Slide 4 text

@TheQuinnGil https://QuinnGil.com Encapsulation µObjects ?

Slide 5

Slide 5 text

@TheQuinnGil https://QuinnGil.com Encapsulation µObjects Behavior

Slide 6

Slide 6 text

@TheQuinnGil https://QuinnGil.com µObjects Never Return Your Data

Slide 7

Slide 7 text

@TheQuinnGil https://QuinnGil.com µObjects Never Return Your Data

Slide 8

Slide 8 text

@TheQuinnGil https://QuinnGil.com Immutability - Externally Immutable µObjects

Slide 9

Slide 9 text

@TheQuinnGil https://QuinnGil.com Immutability - Externally Immutable µObjects

Slide 10

Slide 10 text

@TheQuinnGil https://QuinnGil.com Immutability - Externally Immutable µObjects

Slide 11

Slide 11 text

@TheQuinnGil https://QuinnGil.com Immutability - Internally Immutable µObjects

Slide 12

Slide 12 text

@TheQuinnGil https://QuinnGil.com Immutability µObjects

Slide 13

Slide 13 text

@TheQuinnGil https://QuinnGil.com No ‘new’ Inline - Inversion of Control µObjects

Slide 14

Slide 14 text

@TheQuinnGil https://QuinnGil.com No ‘new’ Inline - Inversion of Control µObjects

Slide 15

Slide 15 text

@TheQuinnGil https://QuinnGil.com No ‘new’ Inline - Injection µObjects

Slide 16

Slide 16 text

@TheQuinnGil https://QuinnGil.com No ‘new’ Inline - All Knowing µObjects

Slide 17

Slide 17 text

@TheQuinnGil https://QuinnGil.com No ‘new’ Inline - All Knowing µObjects

Slide 18

Slide 18 text

@TheQuinnGil https://QuinnGil.com No ‘new’ Inline - DIY µObjects

Slide 19

Slide 19 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 20

Slide 20 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 21

Slide 21 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 22

Slide 22 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 23

Slide 23 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 24

Slide 24 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 25

Slide 25 text

@TheQuinnGil https://QuinnGil.com Anti-Pattern: Primitive Obsession µObjects

Slide 26

Slide 26 text

@TheQuinnGil https://QuinnGil.com Encapsulate Relationships µObjects

Slide 27

Slide 27 text

@TheQuinnGil https://QuinnGil.com Encapsulate Relationships µObjects

Slide 28

Slide 28 text

@TheQuinnGil https://QuinnGil.com No Nulls µObjects

Slide 29

Slide 29 text

@TheQuinnGil https://QuinnGil.com No Nulls µObjects Null Object Pattern

Slide 30

Slide 30 text

@TheQuinnGil https://QuinnGil.com ‘if’ Only as Guard Clause µObjects

Slide 31

Slide 31 text

@TheQuinnGil https://QuinnGil.com ‘switch’ & ‘else’ Are Always Evil µObjects

Slide 32

Slide 32 text

@TheQuinnGil https://QuinnGil.com ‘switch’ & ‘else’ Are Always Evil µObjects

Slide 33

Slide 33 text

@TheQuinnGil https://QuinnGil.com ‘switch’ & ‘else’ Are Always Evil µObjects

Slide 34

Slide 34 text

@TheQuinnGil https://QuinnGil.com Composition Over Inheritance µObjects

Slide 35

Slide 35 text

@TheQuinnGil https://QuinnGil.com Composition Over Inheritance µObjects

Slide 36

Slide 36 text

@TheQuinnGil https://QuinnGil.com µObjects Interface Everything

Slide 37

Slide 37 text

@TheQuinnGil https://QuinnGil.com No Statics µObjects

Slide 38

Slide 38 text

@TheQuinnGil https://QuinnGil.com No Public Constants µObjects

Slide 39

Slide 39 text

@TheQuinnGil https://QuinnGil.com Never Type Inspection or Reflection µObjects

Slide 40

Slide 40 text

@TheQuinnGil https://QuinnGil.com No Asymmetric Marriage µObjects

Slide 41

Slide 41 text

@TheQuinnGil https://QuinnGil.com No Asymmetric Marriage µObjects

Slide 42

Slide 42 text

@TheQuinnGil https://QuinnGil.com No Asymmetric Marriage µObjects

Slide 43

Slide 43 text

@TheQuinnGil https://QuinnGil.com Operating System Abstraction Layer µObjects

Slide 44

Slide 44 text

@TheQuinnGil https://QuinnGil.com µObjects Practices µObjects ● Never Return Your Data ● Always Immutable ● No ‘new’ Inline ● No Primitive Obsession ● Encapsulate Relationships ● No nulls ● ‘if’ Only as Guard Clause ● ‘switch’ & ‘else’ Always Evil ● Composition Over Inheritance ● Interface Everything ● No Statics ● No Public Constants ● No Asymmetric Marriage ● OS Abstraction Layer An Object Does A Single Thing

Slide 45

Slide 45 text

@TheQuinnGil https://QuinnGil.com µObjects - What do we get? µObjects Maintainability

Slide 46

Slide 46 text

@TheQuinnGil https://QuinnGil.com µObjects

Slide 47

Slide 47 text

@TheQuinnGil https://QuinnGil.com µObjects µObjects Single Responsibility to the Extreme

Slide 48

Slide 48 text

@TheQuinnGil https://QuinnGil.com µObjects Resources https://QuinnGil.com